fix(libSceAgcDriver): accept DCC on 3D color targets #4499
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4499"
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 ee6aba54 on 2026-10-12T13:39:42Z.
What
The decoder refused a 3D color target with DCC enabled ("mipmapped or DCC 3D color targets are unsupported"). The resident image already evaluates the metadata keys of a 3D descriptor when it uploads, so the target only needs its metadata address decoded like a 2D target's. Mipmapped 3D targets stay refused.
Tested
33ae282e4.ctestof a tree combining this branch with #4500 and a not yet submitted layered-rendering change: 953 tests pass;video_out_flip_*andagc_driver_stencil_ref_exportare skipped on this machine.agc_driver_graphicscovers the decoded metadata address and the mipmapped refusal.0x00) before rendering into it; the draw that stopped the title now runs.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 github-actions[bot] on 2026-10-12T13:51:43Z.
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/State.cppL1008-1009core/libs/prx/libSceAgcDriver/tests/Graphics.cppL1324Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-12T14:17:27Z.
Tested on physical hardware: Linux (CachyOS x86_64, GCC), 13th Gen Intel(R) Core(TM) i7-13700T, NVIDIA GeForce RTX 5060 Ti (driver 615.78.08, Vulkan 1.4):
agc_driver_graphics: 5/5 consecutive runs passed cleanly (--repeat until-fail:5), verifying 3D DCC metadata address decoding and mipmapped 3D refusal on physical hardware beyond lavapipe.python3 tools/check_conventions.py: all checks pass.Imported from boykopovar/AnyPS5. Originally posted by ee6aba54 on 2026-10-12T16:22:57Z.
Closing as a duplicate: #1077 (and #3763, which builds on it) makes the same change to the DCC check of 3D color targets, with a test of the decoded keys. I missed it when I checked for overlapping pull requests.
For #1077, in case it helps: PPSA15304 (engine: Unreal Engine 5) fast-clears a 48x48x48 3D target through DCC (all keys
0x00) before rendering into it; with this change the draw runs.Pull request closed