AGC (Windows): Rush 2 and Wave Race 64 stop at their first multisampled DCC target because a host import under 1 MiB is unwatched until its deferred settle #9724
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 MaxLikesCode on 2026-10-22T10:02:31Z.
On Windows, Rush 2 Recompiled (PPSA69423, catalog 00.003.000) and Wave Race 64 Recompiled (PPSA69424, catalog 00.001.000) stop within 10 s on
main7e2ba73e4c, 2 of 2 runs each (Rush 2 after 6.4 s and 1.4 s, Wave Race 64 after 8.4 s and 2.8 s; empty, then warm caches). They stopped the same way ona6dcea9279last night:@milescoviello reported Rush 2 running to the 60 s limit on Linux (RTX 4070 Ti) in #7250. @DavidSamir saw the same stop on Windows with a Radeon 680M in #6528.
Cause
0x4006200000+0xc4000(784 KiB, mapped once, prot0x33). It is host-importedby mapright after (APS5_TRACE_MEMORY,APS5_TRACE_HOST_IMPORT).a6dcea9279, a local diagnostic (not part of any PR) printed the range thatinitialDccClearrefuses (MultisampleTarget.cpp:442): the color range0x4006200000+0xa0000, with DCC at0x40062c1000and CMASK at0x40062c0000.GuestMemory::Watchedis false for every 4 KiB page of it.GuestBufferMemory.cppsettles a private import of 1 MiB or more inside the import window, so it stays watched. A smaller one (settleFloorBytes) is compared, and only returns to the watch once a later lookup has submitted and reaped its batched 4-byte read (settleUnwatchedImports, fromfcaa432840). The title's first draw to the target comes before that.settleFloorBytesto0x1000locally. This is an experiment, not a proposed fix. Both titles then got past this refusal and stopped at the next one:shader 0x20173e900 stage 5: FMASK format is not implementedin Rush 2 andshader 0x201743400 stage 5: FMASK format is not implementedin Wave Race 64. With #8429 (4660cdd42) merged as well, both stop atFMASK CMASK compression is not implemented. Betweena6dcea9279and7e2ba73e4c,MultisampleTarget.cppdid not change, andGuestBufferMemory.cppchanged in one line (#7961's transfer-source usage).native FMASK contents require watched guest memory,native FMASK sampling requires watched guest memory). From its diff, the same Windows import would stop there too. I have not tested #7948 with these titles.a0c51d5778, 2026-10-14) and the 1 MiB settle floor (23fccd7632andfcaa432840, 2026-10-15) both predate these titles.Question
Which direction would you take? Two options:
Setup
libsandrelinkerfrommain7e2ba73e4c(the rerun) anda6dcea9279(the first runs, the diagnostic and the experiment).relinker --windowsand no other flags, laid out as USAGE.md describes, 60 s per run withtools/title_run.pyfrom #7264.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T10:11:16Z.
I lean toward option 1.
initialDccClearcurrently requires watched coverage for the color, DCC and CMASK ranges, collects write generations, then reads the metadata. Letting it accept an unwatched range would weaken that consistency check; the existing explicit-unwatch regression inAlphaToCoverage.cppexercises the current refusal.A synchronous settle seems like the better direction, but it needs a well-defined ordering point against earlier main-queue accesses. That is also the unresolved part of #8527: its proposed settle batching shares queue/pool state with the main recorder, and the maintainer has asked about external synchronization and the bounded fence wait. I would coordinate with that PR's author before adding a parallel change to the same deferred-settle path.
For this title, I would keep the explicitly-unwatched negative case and add a Windows regression where a genuine sub-1 MiB imported range still has a pending settle when initial DCC handling begins; verify both the clear result and that subsequent writes remain tracked. The
settleFloorBytes=0x1000run is good evidence for the title symptom, but not by itself for general acceptance of unwatched metadata.Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-22T12:40:21Z.
A Linux data point: the same stop on Linux with lavapipe, on
main8b3a6ba88. That's Ubuntu 24.04 in a container, Mesa 25.2.8llvmpipe(it hasVK_EXT_external_memory_host), Xvfb, one 45 s run each:initial multisampled DCC contents require watched guest memoryat 6.4 s.That's the same timing pattern as your Windows runs. The cause above points at the Windows path in
GuestBufferMemory.cpp. Does Linux have an equivalent deferred settle for small imports, or does this suggest a second route to an unwatched range? This is lavapipe, not a real GPU like the RTX 4070 Ti in #7250, so a driver difference may also play a part.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T13:52:27Z.
@MarcZX10 @MaxLikesCode the deferred settle for imports under 1 MiB is ours (#6678,
fcaa432840), so we can take option 1 if that helps.#8527 moves those settle reads onto the main queue, with barriers on both sides. A synchronous settle at the point of need would then get its ordering from that, so I'd build it on top of #8527 and follow wherever oneandonlydean's questions there take it.
AlphaToCoverage.cppwould keep refusing.@eliasbruno124-dev, is that fine with you, or would you rather add it to #8527 yourself?
@babyhuey Linux has no deferred settle. At device setup, the import-watch probe decides whether imports are watched or compared (
decideImportWatch,GuestBufferMemory.cpp:1148-1189onmain8b3e39832a).[write-watch] host imports resolve write protection: yesand compares imported ranges instead of watching them.MultisampleTarget.cpp:497) refuses for that reason.[write-watch]line would confirm which way it went.Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-22T15:01:43Z.
Thanks @EagleBearerYS. When there is a branch, I can run Rush 2 and Wave Race 64 with it on Windows with the RTX 4090, with empty and warm caches, and report whether both get past this stop.
AI-assisted: yes (Claude Code)