Repository navigation
test(agc): wait for the tested surface's pending image - #6744
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Adopted: Ondra97 carried the test into #6744 with authorship preserved (confirmation). I verified final head Test-only proposal: 37e57bb1, directly on your unchanged The test creates a real stored surface, marks its retained live image pending under the GPU mutex, and verifies that the helper accepts that image with the lock held. It then tests a separate, already-completed surface with no live/pending image while the first surface remains pending. That wait must return false. Cleanup flushes the pending image before either allocation is destroyed; the default fixture does not run this setup.
Every negative control reached This deterministically verifies the helper contract; it does not independently reproduce your 37/44 diagnostic campaign or establish a title improvement. Your main reproduction and diagnostic connect it to the intermittent #6735 failure. These new runs cover the isolated mode, not a fresh full application build or full suite. Existing full-fixture write-watch omissions remain unclaimed. AI-assisted: Codex; locally built and tested. |
|
@Amoenus Thank you for the independent validation and focused test. I cherry-picked |
Amoenus
left a comment
There was a problem hiding this comment.
Reviewed bf1ea51. Its complete tree matches the previously validated test/fix at 37e57bb merged with main332; the wait fixture is byte-identical. The upstream delta changes logging, not the pending-image lookup or helper contract, so I did not repeat the full matrix solely for that rebase.
Our deterministic controls failed 5/5 on each of RTX 5080, Radeon Graphics and Linux lavapipe with the old predicate; the proposed test/fix passed 5/5 on each. The author has separately retested the final head on RTX 4070 Ti SUPER. Earlier evidence retains its original pins: #6744 (comment).
The exact live/pending identity, completion exit, held-lock contract and allocation lifetime look correct. No title improvement or fresh full-suite run is claimed. AI-assisted: Codex.
What
Fixes #6735.
HoldPendingaccepted any pending storage image while waiting for the tested surface's store. A pending image left by an earlier case could makeSettleflush before this store created an image, soUntrackedRepeatintermittently failed atthe sampled surface has no live storage image. On the original base, a test-only diagnostic found 37 of 44 accepted waits with neither a live nor a pending image for the tested surface; the reported assertion occurred in that campaign. The shared wait now requires the image pending at the exact surface address and size to be the same live image. The result and CPU-write assertions remain in place.The separate
agc_driver_store_pending_identityCTest mode makes one live surface image pending under the GPU mutex, checks thatHoldPendingaccepts it with the lock held, then verifies that the same helper rejects a completed second surface while the first image remains pending. It deterministically covers the predicate without changing the default fixture. The test was cherry-picked from @Amoenus's 37e57bb1 as90b191e5b, preserving the original commit author.#6359 corrects
RunSecondStore's separate wait; #6385 correctsNeighbourCopied's separate wait. Neither changesHoldPending. Their current versions composed cleanly with the original fix in a local integration check.Tested
Current base
332b0b1b79feb39a6e5fc5d4e4a5dfe4491d27b5, submitted headbf1ea515ebb6be3cd2c67ed135079f21532cbbd3. The original issue reproduction used base5d9dcc42d2ec5401aebd089028b8d4d7410a77b4; the first fix head wasbf861be946edd839a3ccbe1c6d0d42262ac8f57f.Windows (native host): Windows 11 Pro build 26300, AMD Ryzen 9 7900X, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 4070 Ti SUPER, driver 617.42. The GPU runs set
ANYPS5_REQUIRE_VULKAN=1; CTest setsANYPS5_NO_SHADER_CACHE=1. The selected physical NVIDIA device was confirmed in verbose output.90b191e5b)90b191e5b)agc_driver_store_pending_identity, fresh processesthe wait accepted another surface's pending imageThe comparison uses the same test source and build settings with only the
HoldPendingpredicate temporarily reversed; that reversal was removed. It verifies the test's regression signal, not title behavior or performance. On the final merged headbf1ea515e, the new CTest mode passed another 5/5 fresh processes andagc_driver_store_over_untrackedpassed 5/5; zero CTest skips. Four existing internal write-watch cases still printednot run, the surface is not write-watchedin a verbose original-fixture run and are not claimed as covered. Each new-mode run finished well under the 30-second project limit.The complete Windows app/libs build of the final head plus #6452's exact test-only alignment correction passed. That correction was applied only for the full build and removed; it is absent from this PR. The new fixture target also built on the exact clean head.
python tools/check_conventions.py --base origin/main,python tools/check_test_registration.py ../buildandgit diff --check origin/main...HEADpassed. The submitted diff changes onlyCMakeLists.txtandStoreOverUntracked.cpp.On the earlier
bf861be9fix head, the original fixture passed 100/100 serial fresh processes and 10/10 after rebuilding that exact commit. The four related CTests passed 4/4; a separatewatchrepeat passed 10/10 with the same internal omissions. A local integration of that earlier head with #6359 and #6385 passed 20/20 fresh GPU processes. These earlier runs were not repeated on the final merged head.Linux (VirtualBox VM): Ubuntu 24.04.5 LTS, kernel 7.0.0-31-generic, GCC 13.3, VirtualBox 7.2.20, Windows 11 Pro host; graphics not exercised. On the earlier
bf861be9head, the full build and fixture executable build passed, and three non-graphics tests (agc_write_watch_coverage,texture_format_lookup,guest_memory) passed with no skips. The finalbf1ea515ehead was not built or tested in this VM: guestcontrol access and source transfer were unavailable while the VM had no network route. Linux graphics/Vulkan tests: NOT RUN — intentionally excluded from VirtualBox VM validation. Native/bare-metal Linux was not tested. Native Linux GPU validation: not tested.Separately, @Amoenus reported 5/5 expected failures with the old predicate and 5/5 passes with the new test on Windows RTX 5080, Windows Radeon Graphics and Ubuntu WSL lavapipe, using the pre-merge
bf861be9fix head. Those are contributor results, not my local runs or validation of the final merged head.No title or homebrew was run. The full CTest suite was not run.
Checklist
main(332b0b1b7merged into the head); no other open PR changes this shared wait