feat(agc): accept 64-bit atomics in graphics shaders when the device enables them #1074
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1074"
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 alfalfa-star on 2026-10-07T08:38:46Z.
What
Graphics shader validation accepts
OpCapability Int64Atomicswhen the device enabledshaderBufferInt64Atomics. The recompiler emits that capability for 64-bit buffer atomics in any stage, and the device setup enables the feature when it is available. ButValidateShadersonly accepted its fixed list, so every draw whose shaders use one was dropped withSPIR-V requires unsupported device capability 12. Compute dispatches are not validated this way and already ran them.The device records the feature (
bufferInt64Atomicsin the device state and in the graphicsContext) and passes it toValidateShaders.A note for #896, which adds 64-bit image atomics: its second commit does the same for
Int64ImageEXTwith animageInt64Atomicsflag. Both PRs change the sameValidateShaderssignature, so whichever lands second needs a rebase. The combined form is..., descriptorIndexing, bufferInt64Atomics, imageInt64Atomics, withInt64Atomicsaccepted when either flag is set.Tested
Linux 7.2.9 (Arch), Mesa 26.2.4 RADV, RX 9070 XT.
agc_driver_graphics: a module declaringInt64Atomicsis refused without the feature and accepted with it.ctest: 463 of 463 pass on currentmain.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:25:30Z.
Conflicts with main in
ShaderValidation.cpp,Pipeline.hpp,Draw.cpp,Context.hppandVulkanDevice.cpp: #375 addedgeometryShaderandsampleRateShadingtoValidateShaders. Please rebase.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-08T16:53:58Z.
Rebased onto current
main(573fc793). The flag now comes after #375'sgeometryShader/sampleRateShadinginValidateShaders/Inspect, and the positional test call has the two extrafalses.ctest: 463/463.Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:42:39Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
a2b049d4, merged ontomain8b393b6ein one build with 31 other PRs that had no Windows run.agc_driver_graphics.guest_offline_imports, broken by #2359 (reported there).No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T22:14:53Z.
Checked on current main: build and full ctest green (546/546),
agc_driver_graphicscovers refusal without the feature and acceptance with it, and the test fails to build without the change. The flag follows the same condition that enablesshaderBufferInt64Atomicson the device, andInt64ImageEXTstays gated by the image flag. Windows run by @popcoder565 passes too; merging.