Shaders: Translate bindless buffer address reads in ray-tracing shaders (fixes 3 previously failing translates) #1809
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1809"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rastapasta on 2026-11-29T00:14:48Z.
Fixes the descriptor-read failures reported in #154 and #1396.
What it changes
Five shadow-ray compute shaders read a guest buffer address from a descriptor selected at run time. The translator could recover the address from a fixed table slot. A computed heap slot failed with
a descriptor read only as data.The host now mirrors guest buffer and acceleration-structure addresses by heap slot, including each buffer view’s first-element offset. The emitter reads the mirror when it can prove that the four-dword load starts on a descriptor boundary and that the shader extracts an address in 256-byte units. Copies, replacements and clears update the mirrored address. Out-of-range indices read zero. Descriptor-data lowering moves into its own module to keep the main emitter within the repository’s file-size limit.
How it was tested
d4b5d510xae80.cargo xtask policypassed. Workspace Clippy still reports the unusedcolourbinding and manual checked division seen in the base CI run.Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by johanncastro759-crypto on 2026-11-29T05:09:22Z.
hi bro, this fork I didn't solve the problem;(
