feat(shader): support 64-bit image atomics through keyed image tables #10440
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10440"
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 boykopovar/AnyPS5. Originally posted by SuarezPM on 2026-10-24T00:26:01Z.
What
64-bit image atomics through keyed image tables no longer fault. A T# keyed at runtime feeding
image_atomic64_*now lowers toOpAtomic*on the table'sAtomic64Viewinstead ofunsupported operation, mirroring the 32-bit path from #8792. Follows up the declared remainder of that PR's debt entry (packed formats and BY element counts still fault).ResourceTracker::AssignTableskeepstableOperationsupported for 64-bit atomics; packed and BY formats still markUnsupported, andMergestill throws on mixed 64-bit/other accesses to one image.atomic64flag through dedup identity into the descriptor binding (DescriptorBindingBuilder), and the table write path bindsAtomic64Viewexactly like the compact path (ShaderResources).docs/dev/debt/shader.mdupdates the image-table entry: 64-bit atomics supported viaAtomicView/Atomic64View(Devicescope, relaxed,AcquireRelease/UniformMemorybarrier as the direct path); the host needsVK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BITfor the view format.Tested
Host: Linux x86-64 (CachyOS), Ryzen 5 3600, RTX 2060 SUPER (NVIDIA 615.78.08, supports
shaderImageInt64Atomics; validation layer requested). The SPIR-V validation lane (SPIRV_TOOLS=ON) that caught the #8792 Phi issue was reproduced locally this time. Full builds run on merge.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:58:38Z.
Review: APPROVED
Reviewed exact head
9c3ffcf5b00fbc760cadf6e431fd71b17bc56182.The 64-bit atomic flag now survives table planning, dedup identity, binding population, and table descriptor resolution; the table write path selects
Atomic64Viewwhile retaining the existing 32-bit and ordinary storage views. Unsupported packed/BY-counted cases remain rejected, and mixed accesses still fail closed. The added CPU-side table registration checks and Vulkan execution regression cover a keyed runtimeT#, R64_UINT atomic add, extension gating, and the null-entry no-reach case.Local checks: current-main merge-tree is clean;
check_conventions.py --base upstream/main --head upstream/pr-10440andgit diff --checkpass. I did not run the GPU test locally. The PR's detailed RTX 2060 SUPER validation-layer run is author-reported. Hosted eligibility, intake, labels, report, and conventions pass; product/relinker jobs are skipped by the workflow gate, so they are not hosted test evidence.No blocking findings on this head.