fix(agc): record depth surface lookups and fast-prove held surfaces #1199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1199"
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 emirplus on 2026-10-07T17:25:07Z.
What
Sets that sample a depth surface previously failed the fast proof with
FastFail::NoRecordon every reuse becausecachedTexturedid not log a lookup record when resolving fromDepthSurfaceTexture.This change:
cachedTexturewith a depth marker.surface.depthinValidatedSurface.DepthSurfaceHoldsrather than falling back to full resource walks.depthSurfaceTeststoGraphics.cppcovering held depth surface validation.Tested
ctest -R agc_driver_graphics --output-on-failure: 100% passed (9.16s).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-07T20:00:34Z.
This is the fix proposed in #1132, down to
DepthSurfaceHolds, so it should reference that issue. I opened #1132 first and followed the contributing flow: issue first, then a PR once the approach is agreed. The same change is ready on a branch, linked in the issue, and I measured it on Demon's Souls (PPSA01341 v1.07) on Linux. Per 10 s of its PS Studios movie:Once the approach in #1132 is approved, I'd suggest closing this PR in favour of mine, or combining the two (for example, keeping the
depthSurfaceTestsfrom here in my PR with credit). Whatever the maintainers prefer.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:25:57Z.
Two things before this can go in.
depthSurfaceTests(tests/Graphics.cpp:2055) only checks a cleared surface list and the enum values, so without the change it fails only by not building; it needs a set that samples a depth surface and fails the fast proof withno recordon main. And please reference #1132, which proposed this fix first.On fisherjoey's question: either branch works; whichever carries that test goes in, with the other credited in the description.
Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-08T05:25:23Z.
Opened #1430 with the test described above:
depthSurfaceProofTestsbuilds onmainunchanged, fails there withfast-fail by reason: no record, and passes with the fix. It references #1132 and credits this PR for the test idea.Imported from boykopovar/AnyPS5. Originally posted by emirplus on 2026-10-08T05:51:57Z.
I’m happy with either approach. I’d prefer to keep #1199 open if the implementation and tests can be brought into line with the maintainer’s feedback, but I’m also fine with combining the useful parts of both PRs if that’s easier to review. Thanks for the credit.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T06:37:07Z.
Closing in favour of #1430: same fix, plus a test that fails on main with
no record, and it credits this PR for the test idea.Pull request closed