fix(libSceAgcDriver): accept DCC on 3D color targets #4499

Closed
ee6aba54 wants to merge 1 commit from upstream-pr/4499 into main
ee6aba54 commented 2026-10-12 13:39:42 +00:00 (Migrated from github.com)

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

  • Ubuntu 24.04, Linux 7.0, GCC 13.3, Release, based on 33ae282e4. ctest of a tree combining this branch with #4500 and a not yet submitted layered-rendering change: 953 tests pass; video_out_flip_* and agc_driver_stencil_ref_export are skipped on this machine. agc_driver_graphics covers the decoded metadata address and the mipmapped refusal.
  • PPSA15304 (engine: Unreal Engine 5): fast-clears a 48x48x48 3D target through DCC (all keys 0x00) before rendering into it; the draw that stopped the title now runs.
  • Windows not built or tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4830237753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4499). Originally posted by [ee6aba54](https://github.com/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 - Ubuntu 24.04, Linux 7.0, GCC 13.3, Release, based on `33ae282e4`. `ctest` of a tree combining this branch with #4500 and a not yet submitted layered-rendering change: 953 tests pass; `video_out_flip_*` and `agc_driver_stencil_ref_export` are skipped on this machine. `agc_driver_graphics` covers the decoded metadata address and the mipmapped refusal. - PPSA15304 (engine: Unreal Engine 5): fast-clears a 48x48x48 3D target through DCC (all keys `0x00`) before rendering into it; the draw that stopped the title now runs. - Windows not built or tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-12 13:51:43 +00:00 (Migrated from github.com)

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.

Pull request Conflicting files (lines on main) Same exports Same new files
#3763 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp L1008-1009
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L1324
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6125651670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4499#issuecomment-6125651670). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T13:51:43Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3763 | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` [L1008-1009](https://github.com/boykopovar/AnyPS5/blob/2a5eca11cd1bf583db39ce67034e8453842ac244/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1008-L1009)<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` [L1324](https://github.com/boykopovar/AnyPS5/blob/2a5eca11cd1bf583db39ce67034e8453842ac244/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L1324) | | |
Kikoarl commented 2026-10-12 14:17:27 +00:00 (Migrated from github.com)

Imported 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.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6126103690 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4499#issuecomment-6126103690). Originally posted by [Kikoarl](https://github.com/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.
ee6aba54 commented 2026-10-12 16:22:57 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6128258594 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4499#issuecomment-6128258594). Originally posted by [ee6aba54](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4499
No description provided.