feat(agc): implement image atomics on 32_SINT and 32_FLOAT surfaces #659
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/659"
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 Celegans12 on 2026-10-05T12:04:59Z.
What
Recompiling a shader with an image atomic on any surface but 32_UINT throws (
atomic image descriptor uses an unsupported format).image_atomic_fmin/fmax/fcmpswap) are reused.DescriptorBindinggainsimageAtomic, stored in the shader disk cache (format version 4) and the resource content key.OpAtomicFMinEXT/OpAtomicFMaxEXTis not used: its -0/+0 and sNaN results may differ from RDNA2, and NVIDIA 610.62 lacksshaderImageFloat32AtomicMinMax.image_atomic_fmaxon a 960x540 32_FLOAT surface.ShaderResources.cpp, the disk cache size asserts andFormatVersion(to 6); whichever merges second keeps both and takes a higher version. #419 and #426 add a function directly aboveStorageTexture::createView, a context-only conflict.Tested
main53dc19cf: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)agc_driver_image_atomicsandagc_driver_image_atomics_floatrepeat every case on 32_SINT and 32_FLOAT surfaces, and the float test requires 16_16 float (format 29) to throw; onmainboth fail at the first 32_SINT case.agc_shader_disk_cacheround-tripsimageAtomic; it does not build onmain.agc_driver_recorder_testsatomicViewTests(run by hand, not part of ctest): the view is reused for each format, and 8_8_8_8 throws.agc_shader_replayof that shader's dumped request throws the message above onmain; with this change it recompiles to an R32ui image with compare-exchange loops.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T15:47:46Z.
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/Graphics/src/Texture.cppL944-945