Shader: image atomics name a U32 element in the handle annotation #525
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/525"
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 Marvisak/VIctory. Originally posted by spidercraft on 2026-11-24T04:27:25Z.
What
Typed texture handles were annotated as four F32 components, image atomics included. DXIL's image atomics are 32-bit integer ones, but a host that takes the element type from the handle annotation (vkd3d-proton's DXIL-to-SPIR-V) then emits a float
OpAtomicUMax, which is invalid SPIR-V; NVIDIA's shader compiler (620.73 on Linux) crashes on it instead of failing the pipeline.An image atomic's handle now names one U32 component (
0x105), and the per-function handle cache is keyed by both annotation words, so a texture that is both read and updated atomically gets both handles. Other handles are unchanged. Independent of the Linux work, though found there.Tested
victory translate --pipelinesover the title's shader archive completed (it crashed in the driver before): every emitted vertex, pixel and mesh program made a pipeline; the compute programs that do not are the ones requiring 64-lane waves.--validatecounts unchanged.cargo test -p victory-shaderpasses; Windows target type-checks with no diagnostics.🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by spidercraft on 2026-11-24T04:35:25Z.
Closing as a duplicate of #177, which fixed the same bug first:
mainalready annotates an atomic's handle as U32, so keying the handle cache by the element type is the whole fix. #526 now carries #177's commits instead of this one.Pull request closed