AGC: StoreOverUntracked's NeighbourCopied case intermittently misses its pending result on Windows / RTX 4080 #6383
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 Neithennn on 2026-10-15T13:43:44Z.
Failure
Unchanged main
0e4ea13a0:agc_driver_store_over_untrackedintermittently fails in the case loop ofmain()at:A local message-only diagnostic (not kept) names the case each time:
an image copy into another block of the surface(Kind::NeighbourCopied) returnsOutcome::Missedon all 256 attempts. The other eight cases andRunSecondStoreare not involved. This is a synthetic regression, not a reproduced game failure.Reproduce
Windows 11 Pro 26200, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, bundled dependencies,
BUILD_TESTING=ON. Source clean except for the diagnostic message, reverted afterwards.Fresh process per run.
NeighbourCopiedmissed 256/2560e4ea13a02bc3a760f)On unchanged main, the runs where this case passes reach
RunSecondStoreand fail at #6347'sthe first result was not stored; #6359 removes that one (0/110), and theNeighbourCopiedmiss remains. Reported first in #6359 (comment).Where
StoreOverUntracked.cpp,Run(),Kind::NeighbourCopiedbranch: after the thirdStore(surface.Texels()), the wait loop returnsOutcome::Missedthe first timeStorageTexture::FindLive(address, SurfaceBytes)is non-null whileStorageTexture::AnyPending()is false. UnlikeHoldPending, it does not keep polling until the result reaches guest memory.Not verified: that the results were already flushed when the image was first seen live. This is a hypothesis consistent with the code, not a measurement. No AMD or Linux run.
AI-assisted: yes (runs and diagnostic done with Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T13:57:47Z.
I traced this to the fixture returning
Missedas soon as it saw a live image with no pending result. PR #6396 waits for that same image to become pending, or for the stored value to reach guest memory, before deciding the outcome. The change is limited to theNeighbourCopiedtest path; #6359's separateRunSecondStorechange is not a dependency.The target built here, but this Linux host cannot execute the test because it lacks the CPU features required by the runtime. If convenient, could you rerun the Windows RTX 4080 case on #6396 and report whether the intermittent miss is gone?
Imported from boykopovar/AnyPS5. Originally posted by Neithennn on 2026-10-15T14:02:11Z.
@MarcZX100 Ran it on the RTX 4080 (Windows 11 Pro 26200, driver 617.42, WinLibs GCC 15.2.0 r7, Release,
ANYPS5_NO_SHADER_CACHE=1, fresh process per run), each change merged with #6359 onto mainf633042df:the result was never held pending(maximum 1.22 s).The difference is the predicate: #6396 waits for
FindPending(address, SurfaceBytes) == image, #6385 forFindLive(...) != nullptr && AnyPending(). With #6359 in both trees,RunSecondStorepasses in every run of #6385, so the 4 misses come from theNeighbourCopiedwait. I have not diagnosed whyFindPendingdoes not name the live image in those runs.AI-assisted: yes (runs done with Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T14:25:39Z.
The comparison identifies a stronger fix than my #6396: #6385 passes 100/100 RTX 4080 runs and waits for either pending work or the result reaching guest memory. I closed #6396 in favor of #6385; thanks for running and diagnosing both variants.