Skip to content

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

Closed
ee6aba54 wants to merge 1 commit into
boykopovar:mainfrom
ee6aba54:fix/agc-dcc-3d-color-targets
Closed

ee6aba54 wants to merge 1 commit into
boykopovar:mainfrom
ee6aba54:fix/agc-dcc-3d-color-targets

Conversation

@ee6aba54

@ee6aba54 ee6aba54 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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 feat(libSceAgcDriver): storage image access to depth surfaces #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

The decoder refused a 3D color target with DCC enabled. 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.

PPSA15304 fast-clears a 48-slice 3D target through DCC before rendering
into it.
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the agc libSceAgc* label Oct 12, 2026
@Kikoarl

Kikoarl commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants