feat(agc): add experimental depth clear and copy recognition #1395
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1395"
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 TibixDev on 2026-10-08T01:47:41Z.
Status after review
Draft: rasterized coverage still unproven.
Rechecked the implementation in
a27e8e19f0e4: bothDecodeDepthClearPass(const QueueState&)andDecodeDepthCopyPass(const QueueState&)decide from register state. Their full viewport/scissor checks do not examine the draw's vertex/index geometry. Two draws with the same registers but different coverage can therefore select the same full-image operation.The decoder and Vulkan image-operation fixtures cannot close that gap. This remains a draft until there is a reference-backed coverage proof with partial/cull/clip negative cases, or the original rasterized operation is implemented. Main's explicit rejection must remain the baseline. #1346 and #1371 have merged; #1368 is the remaining open feature dependency, and its newly rebased implementation must replace the old embedded copy before any eventual integration. No unsafe recognition path was promoted or marked complete.
What
Draft for coverage review. Recognize depth/stencil clear and override-copy draws before shader compilation. Record the selected image operations on the GPU and refresh sampled views after copies.
Tested
Earlier branch-specific tests and measurements remain in the discussion. They have not been rerun on a redesigned current-main version of this PR. The review audit and shared NGS-assisted title exploration do not establish that this head is merge-ready. No full Linux/Windows platform CI was dispatched in this pass.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:21:42Z.
Rebased on
e705d430. Updated the #1368 prerequisite and preserved upstream changes. Grouped the depth limitations with graphics notes. This remains a draft: rasterized draw coverage is not yet proved.Fedora 44 Release:
agc_driver_tests,agc_driver_graphics_tests,agc_driver_pm4_tests,agc_driver_recorder_testsbuild; the targeted tests and contribution checks pass. Windows CI is pending.RADV and lavapipe:
--depth-array-only,--depth-clear-only,--depth-copy-onlypass with core and synchronization validation; no validation errors.Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-12T04:52:23Z.
Review-pass update:
Rechecked the implementation in
a27e8e19f0e4: bothDecodeDepthClearPass(const QueueState&)andDecodeDepthCopyPass(const QueueState&)decide from register state. Their full viewport/scissor checks do not examine the draw's vertex/index geometry. Two draws with the same registers but different coverage can therefore select the same full-image operation.The decoder and Vulkan image-operation fixtures cannot close that gap. This remains a draft until there is a reference-backed coverage proof with partial/cull/clip negative cases, or the original rasterized operation is implemented. Main's explicit rejection must remain the baseline. #1346 and #1371 have merged; #1368 is the remaining open feature dependency, and its newly rebased implementation must replace the old embedded copy before any eventual integration. No unsafe recognition path was promoted or marked complete.
I have updated the PR description to match this status. The PR remains open; the outstanding review requirements are not being marked resolved. AI-assisted audit.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T04:35:49Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: stop recognizing clear and copy draws as full-image operations until rasterized coverage is proven or preserved by the implementation.
What I ran
cedec6e1d5765800c2ffb039d8675d864d27cd57; no build or tests were run.review/description.md,review/commits.md,review/manifest.json, andreview/diff.patch; examined the relevant decoder and draw-dispatch code at the pinned head.repo_read.py.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp:823andcore/libs/prx/libSceAgcDriver/Graphics/src/State.cpp:875: the decoders accept full viewport and scissor bounds as proof of full-surface coverage, but do not evaluate vertex/index geometry, clipping, or culling.DrawPrecheck.cppdispatches the recognized draw directly to whole-image clear/copy operations (core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp:28andcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp:38). A draw with partial rasterized coverage can therefore change pixels the original draw would leave untouched. Keep these paths rejected until coverage is proven or the rasterized operation is implemented.Non-blocking
None.
Not verified
review/files.jsoncould not be read through the provided reader; exclusion metadata is unverified. The manifest lists 14 changed files, all marked included, and those files' changes are represented in the reviewed diff.To get this to a good state
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.