test(agc): require the fast image proof only if the memory stayed watched across it #22989
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22989"
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 BrDhaker on 2026-11-18T16:02:21Z.
What
agc_driver_cached_image_multisample_guardfails now and then on Windows with:CheckCachedImageruns the initial proof and only then asksGuestMemory::Watchedwhether that proof had to take the fast path. For the storage images the memory starts compared and becomes watched when its deferred settle completes, and that can happen while the proof is running. The proof correctly takes the full path, since the memory wasn't watched when it started, but the later query sees watched memory and the test demandsProofPath::Fast.I added temporary prints of the watch state before and after the proof. In 30 runs on the RTX 4060, the storage cases were
watchedBefore=0 path=Full watchedAfter=0every time except the failing run, which waswatchedBefore=0 path=Full watchedAfter=1. The sampled cases werewatchedBefore=1 path=Fast watchedAfter=1in all runs.The test now records the watch state before the proof, and requires the fast path only when the memory is watched both before and after it. Otherwise it takes the existing "compared, not watched" branch. The sampled cases still prove the fast path on every run, so the fast-path check keeps its coverage.
Tested
Windows 11 (build 26300), WinLibs GCC 15.2.0, full build,
ANYPS5_REQUIRE_VULKAN=1, the test run on its own.main738e9da767, RTX 4060In the 80 passing runs with this change, the compared branch was taken exactly twice per run (the two storage cases), and the sampled cases required and got the fast path each time. It also failed in 2 of the 4 full
ctest -j 8runs I did on the 4060 before this change.This only changes the test's own check. No Vulkan calls change, so I didn't do the validation-layer comparison; the layer isn't installed on this machine, and I can run it if you want it.
check_conventions.py --base upstream/mainpasses.ghisn't installed here, so instead oftools/pr_overlap.pyI searched open PRs by hand: #13963 also edits this file, but adds a separate case and doesn't touch the fast-proof check.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:09:28Z.
Review: APPROVED
Reviewed — looks good
The two-line test change conditions the fast-proof assertion on the guest memory being watched both before and after revalidation; no blocking defect is evident in the changed code.
What I ran
63b4ce9bc3ae50d60a12c45af2606acebf1fa403; base ismain.Watcheddeclaration and a nearby use inShaderResources.cppfor context.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
To get this to a good state
Nothing is required.