test(agc): fix two stale expectations in the full recorder run #3103
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3103"
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 fma-rc on 2026-10-10T22:12:54Z.
What
Test-only changes in
tests/Recorder.cppso that a fullagc_driver_recorder_testsrun (no arguments, which ctest never does) gets to the end again on currentmain.staleGenerationTests, step (s): after theRefresh()over untracked memory the image is still pending, so the check now flushes it explicitly first, the way the unwatched branch ofstorageRefreshTestsalready does.importWindowTests, step (w):image->MarkDirty()already creates the import, socachedwas taken after the pages were reported andUnchangedSincestayed true.Both steps, since #2699:
StorageTexture::uploadnow callsHostImportForon the fast-clear path (Texture.cpp:1940), so constructing the image imports the surface and takes the range off the watch. The image still collects its generation before that import (Texture.cpp:1915), which is what the steps guard, so only their precondition was stale. (s) now requires the block to be watched before the image is constructed and the image to hold a generation afterwards. (w) takescachedand checks!HostImportCoversbefore the constructor, and checks that the image's generation predates the import window.Refs #1532 (the full run is still not registered with ctest, so the issue stays open with this).
Tested
Arch Linux, GCC 16.2.1, Release, RTX 5080 (NVIDIA 615.78.08) and Radeon 610M (RADV),
ANYPS5_REQUIRE_VULKAN=1, full run with no arguments. The branch is rebased ontomain65a4e8ef.main2bb78d2c+ the first commit only(s) the storage image imported its memory before a generation was taken(w) the storage image imported its memory before a generation was takenmain65a4e8ef)Recorder read tracking and label tests passedMutations on the driver, each run on both devices: counting an image with a generation as tracked in
Texture.cpp:1564turns (s) red (the image is not pending after the refresh); forcingwritten = trueinGuestMemory.cpp:945turns (w) red (the pages the import reported read as written by the CPU). Removing the import atTexture.cpp:1940leaves the run green. The[gpu] lease wait failed ... Vulkan result -4line in the old logs came from the image being destroyed with its clear recorded when theRequirethrew; it is in no passing log.Not shown: no mutation targets the "results pending over the import window" drop path of (w), whose window now falls inside the constructor. Not tested on Windows by me (both steps are skipped there).
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 github-actions[bot] on 2026-10-10T22:13:05Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:06:26Z.
Review: CHANGES_REQUESTED
Thanks for the follow-up. I ran the full
agc_driver_recorder_tests(no arguments, RADV) with this PR merged onto currentmain: it exits 1 on(s) the storage image imported its memory before a generation was taken, before reaching either step this PR changes. That matches your note on #1532 (it started with #2699), so onmainthe PR's two fixes can't be shown to work.(s)stop after #2699 needs to be settled first, either by taking the generation before constructing the image instaleGenerationTests, or by deciding that the early import is a problem for what(s)guards. It can go in this PR or a separate one.mainwith the PR, and update theTestedtable.Fixes #1532should stay only if the full run is green onmain; the issue also covers the test never running in CI.The two changes themselves (explicit flush in
(s),cachedtaken beforeMarkDirty()in(w)) look reasonable.Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:24:12Z.
Additional platform validation of standalone PR head
1c7ff0bfbd5acde358f85c699149425750406ec5(2026-10-11):Windows: passed — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release,
BUILD_TESTING=ON.1 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run.
Checks:
agc_driver_graphics.Command after building:
ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_graphics$".This scope checks CPU-side behavior; no GPU execution result is claimed.
passed full recorder executable
No title/gameplay validation. These results cover the standalone head, not a merge with current main.
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T07:29:15Z.
Windows run, Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, with
VK_LOADER_DRIVERS_DISABLE=*dzn*(this machine's Dozen ICD crashes on its own, #3255), NVIDIA RTX 4070 Laptop GPU (driver 616.92), head1c7ff0bfmerged onto currentmain:agc_driver_recorder_testsrun with no arguments (ANYPS5_REQUIRE_VULKAN=1) exits 0 (Recorder read tracking and label tests passed) both with this change and on plainmain. Both steps it fixes printLinux write watch onlyand are skipped on Windows, so this run only shows the change is harmless there; it doesn't exercise the fix.ctest -R "^agc_|video_out|^shader|recompiler": 358/358 pass.Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-11T07:50:42Z.
Done in
433302be, and the branch is rebased ontomain65a4e8ef: the full run exits 0 on the RTX 5080 and on RADV.The early import is the fast-clear path of
StorageTexture::uploadcallingHostImportFor(Texture.cpp:1940, from #2699). The image still collects its generation before that import (Texture.cpp:1915), so what (s) guards holds and only the test's precondition was stale. (s) now requires the block to be watched before the image is constructed and the image to hold a generation afterwards. With (s) fixed the run stopped on the same message in (w), for the same reason, so that step got the same treatment.The description has the new table and two driver mutations that turn each step red. I changed
Fixes #1532toRefs, since the full run is still not registered with ctest.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:55:15Z.
Review: APPROVED
Checked the full
agc_driver_recorder_testsrun (no arguments,ANYPS5_REQUIRE_VULKAN=1, RADV) with this PR merged onto currentmain: exits 0. The same run withmain'sRecorder.cppstops at(s) the storage image imported its memory before a generation was taken. The test-only diff fits theStorageTexture::uploadfast-clear import from #2699; merging once CI is green.