Windows: StoreOverUntracked fails at "the first result was not stored" #6347
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Amoenus on 2026-10-15T12:46:21Z.
Failure
Unchanged main
1d1c7615c34757430f91a1b43b8f5f3dd82ef369:agc_driver_store_over_untrackedfails inRunSecondStoreat:The first store is flushed and read back, then the assertion requires its first word to equal
Stored. The fixture stops before the second store and its intervening CPU-write preservation check. This is an existing public synthetic regression, found while maintaining the Sonic PPSA99902 validation integration; it is not a reproduced game failure.Reproduce
Windows 11 Enterprise 26200, WinLibs MinGW-w64 GCC 15.2.0r7, Ninja, Release, bundled dependencies,
BUILD_TESTING=ON, SPIRV-Tools enabled. The target and its dependencies were rebuilt on the pinned main; source stayed clean throughout testing.Repeat in fresh processes; use
AMD Radeon(TM) Graphicsfor the other device. Our default runs clear inheritedAPS5_*/ANYPS5_*options before setting the three options shown. GPL remains at its default.10de:2c02, driver610.62 /32.0.16.10621002:13c0, driver32.0.21036.18No CTest skips, timeouts or access violations. Four internal cases print
not run, the surface is not write-watched: leaving the watch, writing before leaving it, an import leaving it, and the neighboring-page case. Those conditional omissions are not counted as successful coverage of their transitions.Comparisons and scope
2dbdce6c4da46aa3bce634d96bc5ccedbc97038ealso fails5/5 per device. Setting the existingAPS5_PIPELINED_DRAWS=0diagnostic control still fails5/5 per device with the same assertion; disabling pipelining is not a demonstrated fix.AI-assisted investigation: Codex; author reproduced and reviewed the scoped results.
Proposed fixture correction: #6359
Current head
b15060bd9dd5539c4d1ffb9a546c9f50ac2243dbis the unchanged two-line identity gate rebased onto main5d. The PR and maintained comparison separate its exact-head selected build/tests from the older full-build/red-green campaign. Current unrestricted checks pass; the separate constrained neighbour wait needs #6385, and the exact rebased combination passes20/20. The main5d four-way comparison does not reproduce this first-result assertion; it reproduces the distinct #6383 wait and one #6735 assertion. This does not establish that main's old predicate proves the intended image pending, or relabel the historical controls as current-main failures. Production and title capability remain unchanged.Historical proposal verification on main598
Proposed fixture correction: #6359
PR #6359 contains only the two-line correction2bc3a760f, based on main
598dd15954f23f0c239b5c86a2e3ede53474931e. The held-pending wait now requiresFindPending(address, SurfaceBytes)to equal the image returned byFindLive, under the existing GPU mutex. The original predicate combined a live image with any overlapping pending/flushing image and did not establish that the intended image was pending.Unchanged main598 fails5/5 per actual GPU. In a separate test-only diagnostic with the original predicate, both GPUs report
expected image is pending=0immediately before the same first-result assertion. The diagnostic is removed and exact proposed source restored. The result/CPU-preservation assertions and bounded wait remain.The correction passes an initial5/5 and then 100/100 serial fresh-process runs per GPU, with physical-device output checked in every repetition; maximum0.71s NVIDIA/0.58s AMD. Thirteen nearby groups also pass per selector (26 executions, maximum2.18s). Full Windows app/libs build, patched-library validation, conventions and registration pass. Cppcheck2.20/clang-tidy23.1.3 have no selected diagnostic or parser/configuration error for the changed translation unit (7.568s analyzer time).
Four internal watch-transition cases remain omitted exactly as above, despite zero CTest skips. No Linux/full-suite/new title capability result is claimed. This is a fixture synchronization correction, with production unchanged. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-15T15:20:59Z.
Root cause for this: the fixture, not the driver. Tested on Windows Server 2025, RTX 3060 (driver 591.86), WinLibs GCC 15.2.0 r7, Release.
Range. The test passes on
b3f9f89e6and fails frome53927780(#5671). Between them, onlyaf4e074a0changeslibSceAgcDriver; the other change only fixes how a pm4 test links.71bd2876efails 29 of 30 runs with a game on the same GPU and 15 of 15 with the GPU idle. A build from before #5671 passes 8 of 8 under the same load.What the old wait accepted. #5671 added the
NeighbourLeftWatchcase, which runs just beforeRunSecondStore. It puts a linear 0x40000-byte surface at arena+0x1000 and returns with that image still pending, then its memory is freed.RunSecondStorethen allocates its surface at the arena base, overlapping that image. Output from a test-only diagnostic (not for merging):FindLivematched the cached tile-7 image that the leave-the-watch cases left at 0x200000000.AnyPendingOverlapsmatched the neighbour case's leftover image. SoheldLivereturned before the first store was recorded. The flush then dropped the leftover, and the first store's own image (tile 0) was created only after that. Before #5671, the case beforeRunSecondStorewasNeighbourCopied, which uses heap surfaces. Nothing pending overlapped the arena surface, so the weak wait held.Splitting #5671. One build at
71bd2876ewith env-selected variants, 20 fresh runs each:NeighbourLeftWatchskipped, #5671'sbeforeUnwatchkeptbeforeUnwatchback tohook(address, bytes), test unchangedsurfaceTile = TileR64KBXat the start ofRunSecondStoreonlyFindPending == FindLive)The production half of #5671 plays no part in this failure. #6359 is the right fix: with it, the image the test waits on is the pending one (
same=1) for both stores.A coverage note for #6359 (@SleglJan pointed this out on #5671):
surfaceTileis a global that onlyRun()sets. Since #5671,RunSecondStoreruns on the linear surface (tile=0above) instead of the R64KBX surface it was written for in #5760. The test passes either way. ResettingsurfaceTileinRunSecondStoreputs the case back on the tiled surface (last row).AI-assisted: yes