fix(agc): decode GFX10 single-component DCC clears in PPSA38500 loading #28192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28192"
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 lgqdaxia on 2026-11-29T02:53:23Z.
What
A GFX10 single-component DCC surface can store that component as color or alpha. The fast-clear decoder always treated it as alpha, so an asymmetric 0001 or 1110 key could produce the opposite texel value when the descriptor assigns the component to color.
Read the decoded alpha-position flag for the GFX10 single-component case. The GCN and multichannel paths keep their existing behavior. The GFX10 branch in AMD PAL selects color or alpha in the same way. The related 1_5_5_5 PR #28118 currently rejects asymmetric one-channel clears. Combining the two would require its guard to allow the GFX10 case.
Tested
Windows 11, NVIDIA GeForce RTX 3080 Laptop GPU, driver 621.14.
agc_driver_dcc_key_presyncsamples a 1110-cleared R16 view on Vulkan. The main decoder fails the readback and the change passes it. The Khronos layer loaded on both sides and reported zero validation errors.agc_graphics_profile_drawchecks the clear bytes for both alpha positions on normalized, integer and floating-point layouts, and checks the existing GCN behavior. The main decoder fails the new single-component assertion and the change passes.The paired checks used main
4ea61d0de2and candidate59968aecef. The rebase onto0f9cfb9319preserved the decoder and both checks. The nearby scan-reporting change only affects where periodic statistics are written.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T02:58:28Z.
Review: APPROVED
Reviewed — looks good
The change corrects GFX10 single component DCC clear decoding while retaining the existing GCN path; I found no verified blocking defect in the three changed files.
What I ran
Reviewed head
6f34827828113c4d136afa1aa2e42e3bb5688b27. Read the prepared description, commits, manifest, and diff, plus the changed decoder and test ranges throughrepo_read.py. Searched forFillDccClearcallers and GCN profile usage. No test commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run the reported Windows Vulkan tests or PPSA38500 integration. Reviewed only relevant ranges in each changed file; the rest of those files was not read. No files were excluded according to the manifest.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T06:04:21Z.
Review: APPROVED
I read the diff at
6f34827828. Windows 11, GCC 15.2, merged intomainatcf556db18c3together with other open PRs (so not an isolated build), withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validationon an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).agc_driver_dcc_key_presyncand the 60 tests ofagc_driver_graphics_tests: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has aVUID-orSYNC-HAZARDline.main's):agc_driver_dcc_key_presyncfails on both GPUs: "single-component color did not sample the 1110 fast-clear value".Not checked: PPSA38500 itself.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T18:44:52Z.
Review: COMMENTED
The clear decoder now selects color for the single-component GFX10 layout when the descriptor's alpha-position bit is clear. The tests distinguish the asymmetric 0001 and 1110 keys, cover both positions across several formats, and explicitly exercise the GCN behavior. The Vulkan presync case checks that the decoded clear reaches the sampled texel.
The local merge of
6f34827828was clean. Paired Linux lavapipe runs passedagc_driver_dcc_key_presync,agc_driver_gcn_scalar_buffer_base, andagc_graphics_profile_drawon botha9cbd48cb0and the merge. Both verbose logs show Khronos validation 1.4.369 inserted with zero missing-layer orVUID-messages. The NVIDIA and title results come from the author's runs.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.