fix(agc): publish native D32 depth after tracked clears #28917
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28917"
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 MarrasFederico on 2026-12-04T16:29:31Z.
What
A CPU read or an overlapping resource acquisition could try to publish a multisampled D32 depth surface while a tracked clear was still unapplied. This is the stop reported at race start in #15018 after the original HTTP2 issue was resolved.
Realize supported clears before publishing the per-sample depth values. When the active recorder has a matching queued HTILE mask clear, finish that write outside the surface-list lock so its completion can update the metadata. Existing checks still reject unarmed or discarded clears and writes that race the clear. Sample-preserving D16 publication remains unsupported.
Tested
Linux x86_64, NVIDIA 595.99.02, Vulkan Validation 1.4.341 with synchronization validation enabled. On both RTX 3060 and RTX 5060 Ti, main
2c878a2d0089passed all 11 existing focused tests and the candidate passed 12/12. With the new test and the original production source, both GPUs reproducednative multisample depth publication with an unapplied clear is not implemented. The same test passed after byte-for-byte source restoration and rebuild. The validation layer was loaded on both sides and neither logged a VUID or synchronization hazard.The regression reads back actual Vulkan depth draws and checks the guest values for every sample, unchanged depth padding, expanded HTILE, and separate stencil fills. It exercises CPU reads, overlapping depth and color attachments, a single-sample texture read, and a fixture-driven HTILE completion. It also checks the remaining refusal paths. Conventions, debt fold, public-header audit and whitespace checks passed. No title retest.
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 coderabbitai[bot] on 2026-12-04T16:39:23Z.
Review: COMMENTED
Actionable comments
d207d397-1aba-4421-a85b-2bc68d76fab2Reviewing files that changed from the base of the PR and between
82a605ad2candac839ddaa3.core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppdocs/dev/debt/changes/fix-agc-d32-clear-depth-publication.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
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.