mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
A waterfall loop (s_ff1 or v_readfirstlane picks a lane, v_readlane copies its T# to SGPRs, v_cmpx_eq keeps the lanes whose T# VGPRs match, the image instruction runs, the matched lanes leave the loop) reads the T# from VGPRs, which no descriptor source evaluates, so planning failed with "GetImageResource dword 0 is not a valid runtime value". When every T# dword of an image read, sample, gather or query comes from v_readlane_b32 or v_readfirstlane_b32 and the EXEC its results are written under implies that each of them equals the lane's own VGPR, the access takes each lane's own T#. A T# that each lane loaded with buffer_load_dword* (IDXEN) from one evaluable V# becomes a bindless image table keyed by the lane's index, addressed by the V# stride, and its slot is decorated NonUniform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>