Shader: image atomics name a U32 element in the handle annotation #525
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!525
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/525/head"
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?
@spidercraft on GitHub · 2026-11-24 04:27 UTC · original
spidercraft:shader-image-atomics→main· +8 −3 · 1 files · 1 commits · closed without mergingWhat
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
@spidercraft on GitHub · 2026-11-24 04:35 UTC · original
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