test(shader): cover integer image atomics #381
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/381"
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 asimplestray on 2026-10-02T16:48:15Z.
What
Test-only follow-up: the 6 integer image atomics (
IMAGE_ATOMIC_CMPSWAP/SUB/SMIN/SMAX/INC/DEC) have since landed inmainvia other work with full SPIR-V backend plus a Vulkan execution test, so this PR keeps only the decode-level regression test.Adds the
image_atomicstest (decode opcode + family + image classification plus translation emitting the expected IR op for all 6 encodings, including thedmask=3requirement for cmpswap).Tested
Linux (GCC,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF): full build, new test passes. Note:agc_driver_pixel_helper_lanesfails on currentmainindependent of this PR (Vulkan pixel-helper assertion, no shader implementation touched here).Checklist
main; no other open PR adds the same test (checked open shader PRs).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T01:13:47Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/CMakeLists.txtL806core/libs/prx/libSceAgcDriver/CMakeLists.txtL806core/libs/prx/libSceAgcDriver/CMakeLists.txtL806core/libs/prx/libSceAgcDriver/CMakeLists.txtL806Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:34:28Z.
Thanks for this.
core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomics.cppon main already runs all six of these integer image atomics (sub, smin, smax, inc, dec, cmpswap) on the GPU and checks the results, and #667 added the bitwise and unsigned ones next to it. That covers decoding and translation too, so a separate decode-level test doesn't add coverage, and I think this can be closed. If you see a case the execution tests miss (another dmask or a 64-bit form, for example), adding it there would be welcome.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T21:20:24Z.
As I mentioned on 10-06,
tests/execution/ImageAtomics.cppon main already runs all six of these integer image atomics on the GPU and checks the results, and #667 added the bitwise and unsigned ones. So I'm closing this as superseded. Thanks for the work.If you find a case those tests miss (another dmask or a 64-bit form, for example), a PR adding it there is welcome. If you think I've missed something here, please reopen.
Pull request closed