fix(agc): settle a pending import synchronously before an initial multisampled DCC import #9941

Merged
EagleBearerYS merged 9 commits from upstream-pr/9941 into main 2026-10-25 09:50:06 +00:00
EagleBearerYS commented 2026-10-22 22:57:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T22:57:08Z.


What

On Windows, Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) stop within 10 s with AGC graphics: initial multisampled DCC contents require watched guest memory (#9724, MaxLikesCode, RTX 4090, main 7e2ba73e4c).

The cause:

  • A Windows private host import under 1 MiB is compared until a later lookup submits and reaps its batched 4-byte settle read (settleUnwatchedImports). The title's first draw to its multisampled target comes before that.
  • MaxLikesCode's logs show the Windows probe keeps imports watched (comment). So the range is unwatched only while its settle is pending.
  • With settleFloorBytes lowered locally, both titles got past this stop.
  • Partial blocks: Rush 2's import, 0x4006200000+0xc4000, isn't a whole number of 64 KiB blocks.
    • The deferred settle never queues such an import (importRunAt needs whole blocks).
    • GuestMemory::Rewatch skips partial blocks.
    • So on main that import stays compared for good.

The approach: this is option 1, which MarcZX10 leaned toward (comment), and it builds on eliasbruno124-dev's #8527.

  • #8527 records the settle reads as one batch on the main queue, with barriers on both sides.
  • So a batch submitted under the GPU mutex is ordered after every main-queue submission before it, and this PR takes its ordering point from that.

The change:

  • WatchedAfterSettle(context, address, bytes). On Windows, under GpuMutex, on a device with host imports and a settle queue, it:

    1. reconciles the imports;
    2. finds the compared imports over the range whose settle is pending or on demand;
    3. submits them through #8527's submitSettleBatch and waits for their fences;
    4. reaps and rewatches;
    5. returns GuestMemory::Watched.

    Elsewhere it is GuestMemory::Watched, so Linux is unchanged.

  • initialDccClear calls it instead of GuestMemory::Watched. The refusal text is unchanged.

  • Partial-block imports:

    • importRunAt marks them settleOnDemand, under the same conditions that give a whole-block import a deferred read. They still aren't queued, so the deferred path is unchanged for them.
    • On demand, the settle rewatches the import's own 4 KiB pages, and each 64 KiB block they touch is stamped as a CPU store. Rewatching the range rounded out to whole blocks failed when that range ran past the import's mapping, as Rush 2's does: MaxLikesCode traced it independently (comment).
    • If another compared import or a live storage image shares the 64 KiB span, the import stays compared and the check refuses.
  • FMASK (second commit): #7948's two FMASK checks, at the import and at reuse, call the same helper.

  • Kept:

    • every rewatch rule, including a live storage image over the import;
    • APS5_NO_DEFERRED_SETTLES;
    • the refusal of a range that is unwatched without an import, such as an explicit GuestMemory::Unwatch.
  • A limit, stated in the debt file: a retired compared import that a recorder still holds through KeepThroughHold isn't visible to the shared-block check.

Cost: one main-queue submission and a fence wait, only when an initial DCC import finds its range under a pending settle. That happens at target creation, not per draw. The wait also covers the main-queue work submitted before it. No product path holds a main-queue submission on a host semaphore: HoldNextSubmit is test-only.

Commits (adriadam10 rebased them onto main 2ace103a9c after #8527 merged, so #8527's commits and the earlier merges of main are no longer here):

  • fix(agc): settle a pending import synchronously before an initial multisampled DCC import.
  • fix(agc): settle a pending import before the FMASK checks of an initial multisampled DCC import.
  • test(agc): keep only the FMASK's settle pending in an eight-sample initial DCC case (test only).
  • test(agc): cover multi-batch import settling and fix(agc): settle every pending import batch, by @Queuse (comment), cherry-picked unchanged under their name. settleImportsNow submitted one settle batch, which holds at most 256 imports, so with more pending imports part of the range stayed unwatched. It now keeps submitting while a requested import is still wanted. The test's timeout drops from 60 to 30 s, as CONTRIBUTING asks.
  • fix(agc): let Rewatch return page-aligned ranges and fix(agc): rewatch only a settled import's own pages: GuestMemory::Rewatch takes 4 KiB-page ranges, with whole-block CPU stamps kept, and a settled import is rewatched by its own pages. Its guards (another compared import, a live storage image) stay on the 64 KiB span. The ARCHITECTURE.md line and the debt entry say so.
  • A merge of main 672c38f703 (c097fca028), for the debt file (see Tested).

Linux comparison mode, MarcZX10's case (2), is #9940.

Tested

A title run on Windows confirms the fix (comment): with this head merged onto main, @babyhuey's Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) get past initial multisampled DCC contents require watched guest memory, where main stops. Runs before the last two commits still stopped there (below); MaxLikesCode's trace showed the cause those commits fix.

  • agc_import_settle_initial_dcc (new, settleInitialDccTests in tests/Recorder.cpp).
    • It runs only on Windows. Elsewhere it skips with the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows.
    • It requires the probe's result and prints it: Windows private imports stay watched after a settle read.
    • Each import is made off the GPU lock, so its settle is still pending when the target is first used under the lock.
    • Each case's imports sit in their own region with unregistered 64 KiB gaps, so they can't join.
    1. A pending settle (4x): accepted, with settle reads submitted and the import back in the write watch. The resolve reads the clear. After CPU stores into the color and the keys, re-acquiring refuses with writes to a resident multisampled DCC target or its metadata are not implemented, so the writes were tracked.
    2. Rush 2's shape: a 0xc4000-byte import. Twenty lookups 1 ms apart leave it compared, as on main. Then the target is accepted as in case 1.
    3. A compared import in its last 64 KiB block: refused, and the import stays compared.
    4. Deferred settles off: refused, and the import stays compared.
    5. Explicitly unwatched keys: refused even though the color import settles. The color is back in the watch and the keys are still unwatched.
    6. An eight-sample target whose FMASK has its own pending settle: accepted. The FMASK is watched after it, the resolve reads the clear, and a CPU store into the FMASK refuses at re-acquire.
  • RTX 3070 Laptop GPU (Windows 11, NVIDIA 617.42, VK_LOADER_DRIVERS_SELECT=*nv*), on the fix commit, cases 1-5:
    • Green: 5/5, with all five cases as designed.
    • Red: 3/3, with the product files at #8527 + main. Case 1 is refused with the title's text, and 0 settle reads are submitted.
    • #8527's settle and watch tests and the alpha-to-coverage tests: 15/15.
  • RTX 3070 Laptop GPU at this head (af1fa8edb3, NVIDIA 617.42, VK_LOADER_DRIVERS_SELECT=*nv*, pass/fail only):
    • Green: all six cases as designed, 5/5. Cases 1, 2 and 6 are accepted, and 3, 4 and 5 are refused with the title's text. Case 6 reads (m) initial DCC over an eight-sample target whose FMASK has its own pending settle (import 589824 bytes): accepted; 2 settle reads submitted, 2 back in the write watch.
    • Regressions: agc_import_settle* and agc_import_watch* (#8527's included), agc_driver_native_fmask at eight samples, agc_driver_msaa_dcc_clear_2, _4 and _8, and the alpha-to-coverage and multisampled DCC state tests pass 20/20.
    • Case 6 has no red of its own. With the FMASK commit's product change reverted, it's still accepted, 3/3, because the color import's settle batch also carries the FMASK's settle. It stays as the case where both settle together.
  • Case 7, an eight-sample target whose FMASK alone has a pending settle (the test-only commit, f8f2e70456), on the RTX 3070 Laptop GPU (617.42, pass/fail only):
    • the color, DCC and CMASK planes are already watched, and only the FMASK's sub-1 MiB import is pending;
    • red, with the graphics code before the FMASK commit (39ef39855e), 3/3: refused with native FMASK contents require watched guest memory, with 0 settle reads submitted;
    • green at f8f2e70456, 5/5: accepted, with 1 settle read and 1 rewatch;
    • the other cases are unchanged on both trees, and the 20 regression tests pass 20/20.
  • agc_import_settle_initial_dcc gains 256, 257 and 1,025 adjacent pending 64 KiB imports settled by one synchronous call (Queuse's test and fix, f3eb5557eb):
    • red before the fix, with the graphics code at f8f2e70456, 3 of 3 on the RTX 3070 Laptop GPU (617.42, pass/fail only): 257 fails with "one synchronous settle left part of 257 adjacent imports unwatched", and 256 still passes;
    • green at f3eb5557eb, 5 of 5 there: the three counts settle with 256, 257 and 1,025 reads submitted. Queuse's own run on an RTX 3050 Laptop GPU (621.01), under the validation layer, also passes them, along with a CPU write after the last settle;
    • the 20 MSAA, FMASK, DCC and import-settle regression tests pass 20 of 20 on the RTX 3070;
    • GitHub's build check of the branch (run) is green on both runners; the Windows runner has no Vulkan device, so the GPU tests skip there.
  • Title runs on Windows, by @babyhuey (comment): RTX 3080 (NVIDIA 610.88), main b1496678ac against that main with this head merged.
    • Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) still stop with initial multisampled DCC contents require watched guest memory, with and without this PR, and no [write-watch] line is printed.
    • A diagnostic build that prints why the range isn't watched is with babyhuey (comment).
  • Title runs on Windows, by @MaxLikesCode (comment): RTX 4090 (NVIDIA 617.42), Rush 2 Recompiled and Wave Race 64 Recompiled, empty and warm caches, 60 s each.
    • main 0def01bcb5, test/9724-both and this PR at f3eb5557eb all stop at initial multisampled DCC contents require watched guest memory.
    • Their trace: rewatchSettledImports passed GuestMemory::Rewatch the rounded range 0x4006200000-0x40062d0000, 48 KiB past the title's mapping at +0xc4000, so the walk failed and nothing was rewatched. The last two commits rewatch only the import's own pages.
  • The rewatch of a partly mapped import (768d274a72 and 8a91e2ac38), on GitHub's runners with f3eb5557eb as the base (run):
    • Red, f3eb5557eb: on Windows the new agc_write_tracking_rewatch_import_pages finds the page past a 0xc4000-byte import reserved but not committed (State 0x2000), then fails "a settled import whose size is not a whole block did not return to the write watch". agc_write_tracking fails "rewatching part of a block did not return exactly its pages to the write watch".
    • Green: on Windows those two, agc_write_tracking_metadata_commit, agc_resident_direct_remap and agc_write_watch_coverage pass 10 runs in a row, none skipped.
    • Linux (run): agc_write_tracking and agc_write_watch_coverage, the two of the five registered there, pass 10 runs in a row. Of the 61 tests the harness also mapped from the changed files, 54 pass ×10 and 7 skip, and none fail. On Windows, 8 of 79 pass ×10 and 71 skip without a Vulkan device. The libc suite passes on both. The Windows libkernel suite timed out guest_raise_in_system_call at the end of the suite: a runner timeout in a library this PR doesn't touch, which passed in the run below.
    • The first commit alone (768d274a72, run): its tests pass 10 runs in a row on both runners, with the same counts, and both suites pass on both.
  • Title runs on Windows at this head, by @babyhuey (comment): RTX 3080 (NVIDIA 610.88), Windows 11, 8a91e2ac38 merged onto main d187f09c93 (clean) against that main, default relink, 60 s each, APS5_TRACE_HOST_IMPORT=1.
    • On main, Rush 2 Recompiled and Wave Race 64 Recompiled stop after 4.0 s with initial multisampled DCC contents require watched guest memory.
    • With this PR, both get past it, and their logs have no DCC error. Each next stops after 4.0 s with FMASK format is not implemented while a graphics shader is prepared (shader 0x20173e900 stage 5 in Rush 2, shader 0x201743400 stage 5 in Wave Race 64). That limit is the shader recompiler's: main reads only Fmask32_S8_F8, and #8429 reads the other FMASK formats of up to 8 samples.
  • Title runs on Windows at this head, by @MaxLikesCode (comment): RTX 4090 (NVIDIA 617.42), Windows 11 Pro 26200, 60 s per run, empty and then warm caches.
    • 8a91e2ac38, as it is and merged onto main 06fd07ab4a: Rush 2 Recompiled and Wave Race 64 Recompiled get past the DCC refusal in all 8 runs and stop next at FMASK format is not implemented; main 06fd07ab4a stops at the DCC refusal.
    • With #8429 (4feda344e6) merged too, both titles get past the FMASK format and stop at #8429's FMASK CMASK compression is implemented only for 8-sample, 8-fragment FMASK (shader 0x20173e900 stage 5 in Rush 2, shader 0x201743400 stage 5 in Wave Race 64), cold and warm.
  • MaxLikesCode again, at 67f68be9a8 (comment), same setup: both titles get past the DCC refusal and stop at FMASK format is not implemented, with empty and with warm caches (Rush 2 Recompiled after 5.9 s and 1.4 s, Wave Race 64 Recompiled after 9.3 s and 1.4 s). No log has a [gpu] settling host imports ... failed line.
  • #8527's commits, independently on Windows, by @BKlaasWerkman: RTX 3060 Ti (NVIDIA 617.42) and Intel Arc (101.9150), with the Khronos layer's synchronization validation on, #8527 merged with main 812ed15875 (comment, comment, comment).
    • With main's settle code, the full suite reports synchronization hazards in 56 tests on the RTX 3060 Ti and 55 on Arc, mostly a main-queue copy writing what a settle copy on the other queue read. With #8527, those 58 tests pass with none.
    • #8527's agc_import_settle_write_order and _other_family pass 5 of 5 on both GPUs with and without its fix; only the layer shows the race without it. Of the 48 settle and import tests, agc_import_settle_first_use fails on the RTX 3060 Ti with main's settle code and passes with #8527's.
  • Linux (cloud):
    • The new test skips there.
    • ctest -R 'import|settle|dcc|msaa|alpha_to_coverage|fmask|multisample': 74/74, 8 skipped.
    • CI's Linux job mirrored: 1850/1853. The failures are the machine's three IPv6 socket tests.
  • GitHub's runners (run): Linux passes ×10 (68 tests, 11 skipped). Windows builds and passes ×10, but the runner has no GPU, so 78 of its 83 tests are Vulkan tests that skip there, agc_import_settle_initial_dcc with them. There's no main arm, because the new test runs only on a Windows GPU. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. The fix commit alone (16f5117426) also passed both runners ×10 (run).
  • Validation layer (run): llvmpipe (LLVM 20.1.2), one run on each tree, with the import, multisampled DCC and alpha-to-coverage tests. agc_import_settle_initial_dcc and agc_driver_native_fmask are in the selection but skip on llvmpipe: with the change 54 of 62 tests pass and 8 skip, and on main 54 of 61 pass and 7 skip; none fail. The layer loaded 60 times on main and 61 with the change. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext and VUID-VkImageViewCreateInfo-usage-02275, so the change adds no VUID- message.
  • check_conventions.py: passes. No comment lines are added.
  • 67f68be9a8, a merge of main e84c529d6d (clean; the PR's own diff is unchanged), on GitHub's runners:
    • Focused set, 10 runs (run), the import, settle, write-tracking, multisampled DCC and alpha-to-coverage tests the harness maps from the changed files: on Linux, 62 of 73 pass 10 runs in a row and 11 skip, none fail. On Windows, 10 of 91 pass 10 runs in a row and 80 skip without a Vulkan device; agc_write_tracking_metadata_commit fails on its 9th run with "an untouched leaf has a write stamp". That test's process runs only CheckMetadataCommit (--metadata-commit returns before any other case) and makes no Vulkan device, so it reaches neither Rewatch, the one function this PR changes in GuestMemory.cpp, nor the settle code.
    • That test again, 60 runs: on this head (run) it passes all 60 on Windows, with the same set (8 of 83 pass 60 runs in a row, 75 skip; on Linux 58 of 65, 7 skip, none fail), and on main e84c529d6d alone (run) it and agc_write_tracking pass 60 of 60.
    • Validation layer, main against this head, on the Linux runner (run): 62 of 73 pass and 11 skip; the layer loaded 66 times on main and 67 with the change, and both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so the change adds no VUID- message. agc_import_settle_initial_dcc skips there, as on any device without the Windows deferred settle.
    • The libc and libkernel suites pass on both runners (118 and 201 tests on Linux, 145 and 211 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Validation layer on Windows, by @MaxLikesCode (comment): RTX 4090 (NVIDIA 617.42), Windows 11 Pro, WinLibs GCC 15.2.0, Release, main 83694b3db9 against 67f68be9a8 merged onto it (clean), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and the Khronos validation layer (vulkan-sdk-1.4.363.0), two runs each of the import, settle, FMASK, multisampled DCC, alpha-to-coverage and write-tracking set from this ask.
    • main: 21 of 21 pass in both runs. With this PR: 25 of 25 in both runs.
    • The layer loaded on both sides, and neither log has a VUID- line.
    • The four tests main doesn't have ran on the GPU and passed, none skipped: agc_import_settle_initial_dcc, agc_write_tracking_rewatch_import_pages, and #8527's agc_import_settle_write_order and _other_family.
  • c097fca028, a merge of main 672c38f703, after adriadam10's rebase onto main 2ace103a9c, on GitHub's runners:
    • One conflict, in docs/dev/debt/libSceAgcDriver.md. The Compressed FMASK reads entry keeps this PR's clause on an FMASK import awaiting its Windows deferred read (WatchedAfterSettle), and main's Multisampled CMASK state and new Multisampled DCC CMASK without fast clears entries are kept as they are. In every other file the PR's diff has the same patch-id as before the merge.
    • Focused set, 10 runs (run), the import, settle, write-tracking, multisampled DCC and alpha-to-coverage tests the harness maps from the changed files: Linux: 73 run, 63 pass, 10 skip, 0 fail. Windows: 92 run, 9 pass, 83 skip (no Vulkan device), 0 fail.
    • The libc suite passes on both runners and the libkernel suite on Linux. On Windows the libkernel suite timed out guest_raise_in_system_call, which also timed out on main's own Windows Build (run, run); this PR changes nothing in libkernel. On this head it then passed 20 runs in a row, with the focused set ×20 (run): Linux: 69 run, 62 pass, 7 skip, 0 fail. Windows: 89 run, 10 pass, 79 skip, 0 fail, and both suites pass on both. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 02f6f8e66f, a merge of main 2fade7ef4e, on GitHub's runners:
    • Two conflicts, both with #9159 (merged), and both keep both sides. In libSceAgcDriver/CMakeLists.txt, the write-tracking tests' ENVIRONMENT_MODIFICATION line lists #9159's agc_rewatched_direct_shared, agc_import_alias_shared and agc_compared_shared_generations as well as this PR's agc_write_tracking_rewatch_import_pages. In tests/WriteTracking.cpp, both sides' mode constants, test functions and dispatch are kept. In every other file the PR's added and removed lines are unchanged.
    • Focused set, 10 runs (run), the tests the harness maps from the changed files, the import, settle, write-tracking and multisampled DCC tests among them: Linux: 81 run, 70 pass, 11 skip, 0 fail. Windows: 103 run, 13 pass, 90 skip (no Vulkan device), 0 fail.
    • The libc and libkernel suites pass on both (143 and 205 tests on Linux, 170 and 221 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

Overlap:

  • #8527: merged (ea695358ee). This PR builds on its settle batch.
  • #9940 (ours, the Linux case): it touches the same check in initialDccClear and the FMASK checks. They compose with the settle first: a pending Windows settle returns the range to the watch, and anything still compared takes #9940's path. test/9724-both-main (6a9d64819f) is that resolution, and its focused set passes 77/77. Merge order: #9940 first.
  • #8429 and main caa089fd73: clean.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #9940 (merge order only, see Overlap)
  • Fixes #9724
  • Unblocks: Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) on Windows, past initial multisampled DCC contents require watched guest memory, as babyhuey's run shows; their next stop is an FMASK format (see Tested) (no Game bring-up discussion yet)
  • GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (Windows 11, 617.42); Mesa llvmpipe on a cloud Linux machine and GitHub's Linux runner; NVIDIA GeForce RTX 3060 Ti (617.42) and Intel Arc (101.9150), Windows 11, #8527's commits (BKlaasWerkman); NVIDIA GeForce RTX 4090 (617.42), Windows 11, the titles and the validation comparison (MaxLikesCode)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4975245680 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9941). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T22:57:08Z. --- ### What On Windows, Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) stop within 10 s with `AGC graphics: initial multisampled DCC contents require watched guest memory` (#9724, MaxLikesCode, RTX 4090, `main` 7e2ba73e4c). **The cause:** - A Windows private host import under 1 MiB is compared until a later lookup submits and reaps its batched 4-byte settle read (`settleUnwatchedImports`). The title's first draw to its multisampled target comes before that. - MaxLikesCode's logs show the Windows probe keeps imports watched ([comment](https://github.com/boykopovar/AnyPS5/issues/9724#issuecomment-6346082115)). So the range is unwatched only while its settle is pending. - With `settleFloorBytes` lowered locally, both titles got past this stop. - **Partial blocks:** Rush 2's import, `0x4006200000+0xc4000`, isn't a whole number of 64 KiB blocks. - The deferred settle never queues such an import (`importRunAt` needs whole blocks). - `GuestMemory::Rewatch` skips partial blocks. - So on `main` that import stays compared for good. **The approach:** this is option 1, which MarcZX10 leaned toward ([comment](https://github.com/boykopovar/AnyPS5/issues/9724#issuecomment-6338234700)), and it builds on eliasbruno124-dev's #8527. - #8527 records the settle reads as one batch on the main queue, with barriers on both sides. - So a batch submitted under the GPU mutex is ordered after every main-queue submission before it, and this PR takes its ordering point from that. **The change:** - **`WatchedAfterSettle(context, address, bytes)`.** On Windows, under `GpuMutex`, on a device with host imports and a settle queue, it: 1. reconciles the imports; 2. finds the compared imports over the range whose settle is pending or on demand; 3. submits them through #8527's `submitSettleBatch` and waits for their fences; 4. reaps and rewatches; 5. returns `GuestMemory::Watched`. Elsewhere it is `GuestMemory::Watched`, so Linux is unchanged. - **`initialDccClear`** calls it instead of `GuestMemory::Watched`. The refusal text is unchanged. - **Partial-block imports:** - `importRunAt` marks them `settleOnDemand`, under the same conditions that give a whole-block import a deferred read. They still aren't queued, so the deferred path is unchanged for them. - On demand, the settle rewatches the import's own 4 KiB pages, and each 64 KiB block they touch is stamped as a CPU store. Rewatching the range rounded out to whole blocks failed when that range ran past the import's mapping, as Rush 2's does: MaxLikesCode traced it independently ([comment](https://github.com/boykopovar/AnyPS5/issues/9724#issuecomment-6362760689)). - If another compared import or a live storage image shares the 64 KiB span, the import stays compared and the check refuses. - **FMASK (second commit):** #7948's two FMASK checks, at the import and at reuse, call the same helper. - **Kept:** - every rewatch rule, including a live storage image over the import; - `APS5_NO_DEFERRED_SETTLES`; - the refusal of a range that is unwatched without an import, such as an explicit `GuestMemory::Unwatch`. - **A limit, stated in the debt file:** a retired compared import that a recorder still holds through `KeepThroughHold` isn't visible to the shared-block check. **Cost:** one main-queue submission and a fence wait, only when an initial DCC import finds its range under a pending settle. That happens at target creation, not per draw. The wait also covers the main-queue work submitted before it. No product path holds a main-queue submission on a host semaphore: `HoldNextSubmit` is test-only. **Commits** (adriadam10 rebased them onto `main` 2ace103a9c after #8527 merged, so #8527's commits and the earlier merges of `main` are no longer here): - **`fix(agc): settle a pending import synchronously before an initial multisampled DCC import`.** - **`fix(agc): settle a pending import before the FMASK checks of an initial multisampled DCC import`.** - **`test(agc): keep only the FMASK's settle pending in an eight-sample initial DCC case`** (test only). - **`test(agc): cover multi-batch import settling`** and **`fix(agc): settle every pending import batch`**, by @Queuse ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6357083025)), cherry-picked unchanged under their name. `settleImportsNow` submitted one settle batch, which holds at most 256 imports, so with more pending imports part of the range stayed unwatched. It now keeps submitting while a requested import is still wanted. The test's timeout drops from 60 to 30 s, as CONTRIBUTING asks. - **`fix(agc): let Rewatch return page-aligned ranges`** and **`fix(agc): rewatch only a settled import's own pages`**: `GuestMemory::Rewatch` takes 4 KiB-page ranges, with whole-block CPU stamps kept, and a settled import is rewatched by its own pages. Its guards (another compared import, a live storage image) stay on the 64 KiB span. The ARCHITECTURE.md line and the debt entry say so. - **A merge of `main` 672c38f703** (c097fca028), for the debt file (see Tested). Linux comparison mode, MarcZX10's case (2), is #9940. ### Tested **A title run on Windows confirms the fix** ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6364668371)): with this head merged onto `main`, @babyhuey's Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) get past `initial multisampled DCC contents require watched guest memory`, where `main` stops. Runs before the last two commits still stopped there (below); MaxLikesCode's trace showed the cause those commits fix. - **`agc_import_settle_initial_dcc`** (new, `settleInitialDccTests` in `tests/Recorder.cpp`). - It runs only on Windows. Elsewhere it skips with `the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows`. - It requires the probe's result and prints it: Windows private imports stay watched after a settle read. - Each import is made off the GPU lock, so its settle is still pending when the target is first used under the lock. - Each case's imports sit in their own region with unregistered 64 KiB gaps, so they can't join. 1. **A pending settle (4x):** accepted, with settle reads submitted and the import back in the write watch. The resolve reads the clear. After CPU stores into the color and the keys, re-acquiring refuses with `writes to a resident multisampled DCC target or its metadata are not implemented`, so the writes were tracked. 2. **Rush 2's shape:** a 0xc4000-byte import. Twenty lookups 1 ms apart leave it compared, as on `main`. Then the target is accepted as in case 1. 3. **A compared import in its last 64 KiB block:** refused, and the import stays compared. 4. **Deferred settles off:** refused, and the import stays compared. 5. **Explicitly unwatched keys:** refused even though the color import settles. The color is back in the watch and the keys are still unwatched. 6. **An eight-sample target whose FMASK has its own pending settle:** accepted. The FMASK is watched after it, the resolve reads the clear, and a CPU store into the FMASK refuses at re-acquire. - **RTX 3070 Laptop GPU** (Windows 11, NVIDIA 617.42, `VK_LOADER_DRIVERS_SELECT=*nv*`), on the fix commit, cases 1-5: - **Green:** 5/5, with all five cases as designed. - **Red:** 3/3, with the product files at #8527 + `main`. Case 1 is refused with the title's text, and 0 settle reads are submitted. - **#8527's settle and watch tests and the alpha-to-coverage tests:** 15/15. - **RTX 3070 Laptop GPU at this head** (af1fa8edb3, NVIDIA 617.42, `VK_LOADER_DRIVERS_SELECT=*nv*`, pass/fail only): - **Green:** all six cases as designed, 5/5. Cases 1, 2 and 6 are accepted, and 3, 4 and 5 are refused with the title's text. Case 6 reads `(m) initial DCC over an eight-sample target whose FMASK has its own pending settle (import 589824 bytes): accepted; 2 settle reads submitted, 2 back in the write watch`. - **Regressions:** `agc_import_settle*` and `agc_import_watch*` (#8527's included), `agc_driver_native_fmask` at eight samples, `agc_driver_msaa_dcc_clear_2`, `_4` and `_8`, and the alpha-to-coverage and multisampled DCC state tests pass 20/20. - **Case 6 has no red of its own.** With the FMASK commit's product change reverted, it's still accepted, 3/3, because the color import's settle batch also carries the FMASK's settle. It stays as the case where both settle together. - **Case 7, an eight-sample target whose FMASK alone has a pending settle** (the test-only commit, f8f2e70456), on the RTX 3070 Laptop GPU (617.42, pass/fail only): - the color, DCC and CMASK planes are already watched, and only the FMASK's sub-1 MiB import is pending; - **red,** with the graphics code before the FMASK commit (39ef39855e), 3/3: refused with `native FMASK contents require watched guest memory`, with 0 settle reads submitted; - **green** at f8f2e70456, 5/5: accepted, with 1 settle read and 1 rewatch; - the other cases are unchanged on both trees, and the 20 regression tests pass 20/20. - **`agc_import_settle_initial_dcc` gains 256, 257 and 1,025 adjacent pending 64 KiB imports settled by one synchronous call** (Queuse's test and fix, f3eb5557eb): - **red** before the fix, with the graphics code at f8f2e70456, 3 of 3 on the RTX 3070 Laptop GPU (617.42, pass/fail only): 257 fails with "one synchronous settle left part of 257 adjacent imports unwatched", and 256 still passes; - **green** at f3eb5557eb, 5 of 5 there: the three counts settle with 256, 257 and 1,025 reads submitted. Queuse's own run on an RTX 3050 Laptop GPU (621.01), under the validation layer, also passes them, along with a CPU write after the last settle; - the 20 MSAA, FMASK, DCC and import-settle regression tests pass 20 of 20 on the RTX 3070; - GitHub's build check of the branch ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39898857067)) is green on both runners; the Windows runner has no Vulkan device, so the GPU tests skip there. - **Title runs on Windows, by @babyhuey** ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6354569171)): RTX 3080 (NVIDIA 610.88), `main` b1496678ac against that `main` with this head merged. - Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) still stop with `initial multisampled DCC contents require watched guest memory`, with and without this PR, and no `[write-watch]` line is printed. - A diagnostic build that prints why the range isn't watched is with babyhuey ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6355102608)). - **Title runs on Windows, by @MaxLikesCode** ([comment](https://github.com/boykopovar/AnyPS5/issues/9724#issuecomment-6362760689)): RTX 4090 (NVIDIA 617.42), Rush 2 Recompiled and Wave Race 64 Recompiled, empty and warm caches, 60 s each. - `main` 0def01bcb5, `test/9724-both` and this PR at f3eb5557eb all stop at `initial multisampled DCC contents require watched guest memory`. - Their trace: `rewatchSettledImports` passed `GuestMemory::Rewatch` the rounded range `0x4006200000-0x40062d0000`, 48 KiB past the title's mapping at `+0xc4000`, so the walk failed and nothing was rewatched. The last two commits rewatch only the import's own pages. - **The rewatch of a partly mapped import** (768d274a72 and 8a91e2ac38), on GitHub's runners with f3eb5557eb as the base ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39939636564)): - **Red, f3eb5557eb:** on Windows the new `agc_write_tracking_rewatch_import_pages` finds the page past a 0xc4000-byte import reserved but not committed (`State 0x2000`), then fails "a settled import whose size is not a whole block did not return to the write watch". `agc_write_tracking` fails "rewatching part of a block did not return exactly its pages to the write watch". - **Green:** on Windows those two, `agc_write_tracking_metadata_commit`, `agc_resident_direct_remap` and `agc_write_watch_coverage` pass 10 runs in a row, none skipped. - **Linux** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39942321789)): `agc_write_tracking` and `agc_write_watch_coverage`, the two of the five registered there, pass 10 runs in a row. Of the 61 tests the harness also mapped from the changed files, 54 pass ×10 and 7 skip, and none fail. On Windows, 8 of 79 pass ×10 and 71 skip without a Vulkan device. The libc suite passes on both. The Windows libkernel suite timed out `guest_raise_in_system_call` at the end of the suite: a runner timeout in a library this PR doesn't touch, which passed in the run below. - **The first commit alone** (768d274a72, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39942426897)): its tests pass 10 runs in a row on both runners, with the same counts, and both suites pass on both. - **Title runs on Windows at this head, by @babyhuey** ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6364668371)): RTX 3080 (NVIDIA 610.88), Windows 11, 8a91e2ac38 merged onto `main` d187f09c93 (clean) against that `main`, default relink, 60 s each, `APS5_TRACE_HOST_IMPORT=1`. - On `main`, Rush 2 Recompiled and Wave Race 64 Recompiled stop after 4.0 s with `initial multisampled DCC contents require watched guest memory`. - With this PR, both get past it, and their logs have no DCC error. Each next stops after 4.0 s with `FMASK format is not implemented` while a graphics shader is prepared (`shader 0x20173e900 stage 5` in Rush 2, `shader 0x201743400 stage 5` in Wave Race 64). That limit is the shader recompiler's: `main` reads only `Fmask32_S8_F8`, and #8429 reads the other FMASK formats of up to 8 samples. - **Title runs on Windows at this head, by @MaxLikesCode** ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6364938258)): RTX 4090 (NVIDIA 617.42), Windows 11 Pro 26200, 60 s per run, empty and then warm caches. - 8a91e2ac38, as it is and merged onto `main` 06fd07ab4a: Rush 2 Recompiled and Wave Race 64 Recompiled get past the DCC refusal in all 8 runs and stop next at `FMASK format is not implemented`; `main` 06fd07ab4a stops at the DCC refusal. - With #8429 (4feda344e6) merged too, both titles get past the FMASK format and stop at #8429's `FMASK CMASK compression is implemented only for 8-sample, 8-fragment FMASK` (`shader 0x20173e900 stage 5` in Rush 2, `shader 0x201743400 stage 5` in Wave Race 64), cold and warm. - **MaxLikesCode again, at 67f68be9a8** ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6367964404)), same setup: both titles get past the DCC refusal and stop at `FMASK format is not implemented`, with empty and with warm caches (Rush 2 Recompiled after 5.9 s and 1.4 s, Wave Race 64 Recompiled after 9.3 s and 1.4 s). No log has a `[gpu] settling host imports ... failed` line. - **#8527's commits, independently on Windows, by @BKlaasWerkman**: RTX 3060 Ti (NVIDIA 617.42) and Intel Arc (101.9150), with the Khronos layer's synchronization validation on, #8527 merged with `main` 812ed15875 ([comment](https://github.com/boykopovar/AnyPS5/pull/8527#issuecomment-6362717761), [comment](https://github.com/boykopovar/AnyPS5/pull/8527#issuecomment-6363326741), [comment](https://github.com/boykopovar/AnyPS5/pull/8527#issuecomment-6363507836)). - With `main`'s settle code, the full suite reports synchronization hazards in 56 tests on the RTX 3060 Ti and 55 on Arc, mostly a main-queue copy writing what a settle copy on the other queue read. With #8527, those 58 tests pass with none. - #8527's `agc_import_settle_write_order` and `_other_family` pass 5 of 5 on both GPUs with and without its fix; only the layer shows the race without it. Of the 48 settle and import tests, `agc_import_settle_first_use` fails on the RTX 3060 Ti with `main`'s settle code and passes with #8527's. - **Linux (cloud):** - The new test skips there. - `ctest -R 'import|settle|dcc|msaa|alpha_to_coverage|fmask|multisample'`: 74/74, 8 skipped. - CI's Linux job mirrored: 1850/1853. The failures are the machine's three IPv6 socket tests. - **GitHub's runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39867771407)): Linux passes ×10 (68 tests, 11 skipped). Windows builds and passes ×10, but the runner has no GPU, so 78 of its 83 tests are Vulkan tests that skip there, `agc_import_settle_initial_dcc` with them. There's no `main` arm, because the new test runs only on a Windows GPU. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. The fix commit alone (16f5117426) also passed both runners ×10 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39858857312)). - **Validation layer** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39867877796)): llvmpipe (LLVM 20.1.2), one run on each tree, with the import, multisampled DCC and alpha-to-coverage tests. `agc_import_settle_initial_dcc` and `agc_driver_native_fmask` are in the selection but skip on llvmpipe: with the change 54 of 62 tests pass and 8 skip, and on `main` 54 of 61 pass and 7 skip; none fail. The layer loaded 60 times on `main` and 61 with the change. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext` and `VUID-VkImageViewCreateInfo-usage-02275`, so the change adds no `VUID-` message. - **`check_conventions.py`:** passes. No comment lines are added. - **67f68be9a8, a merge of `main` e84c529d6d** (clean; the PR's own diff is unchanged), on GitHub's runners: - **Focused set, 10 runs** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39953683401)), the import, settle, write-tracking, multisampled DCC and alpha-to-coverage tests the harness maps from the changed files: on Linux, 62 of 73 pass 10 runs in a row and 11 skip, none fail. On Windows, 10 of 91 pass 10 runs in a row and 80 skip without a Vulkan device; `agc_write_tracking_metadata_commit` fails on its 9th run with "an untouched leaf has a write stamp". That test's process runs only `CheckMetadataCommit` (`--metadata-commit` returns before any other case) and makes no Vulkan device, so it reaches neither `Rewatch`, the one function this PR changes in `GuestMemory.cpp`, nor the settle code. - **That test again, 60 runs:** on this head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39963695315)) it passes all 60 on Windows, with the same set (8 of 83 pass 60 runs in a row, 75 skip; on Linux 58 of 65, 7 skip, none fail), and on `main` e84c529d6d alone ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39963855802)) it and `agc_write_tracking` pass 60 of 60. - **Validation layer**, `main` against this head, on the Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39953731582)): 62 of 73 pass and 11 skip; the layer loaded 66 times on `main` and 67 with the change, and both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so the change adds no `VUID-` message. `agc_import_settle_initial_dcc` skips there, as on any device without the Windows deferred settle. - The libc and libkernel suites pass on both runners (118 and 201 tests on Linux, 145 and 211 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation layer on Windows, by @MaxLikesCode** ([comment](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6368927339)): RTX 4090 (NVIDIA 617.42), Windows 11 Pro, WinLibs GCC 15.2.0, Release, `main` 83694b3db9 against 67f68be9a8 merged onto it (clean), with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1` and the Khronos validation layer (vulkan-sdk-1.4.363.0), two runs each of the import, settle, FMASK, multisampled DCC, alpha-to-coverage and write-tracking set from [this ask](https://github.com/boykopovar/AnyPS5/pull/9941#issuecomment-6364846046). - `main`: 21 of 21 pass in both runs. With this PR: 25 of 25 in both runs. - The layer loaded on both sides, and neither log has a `VUID-` line. - The four tests `main` doesn't have ran on the GPU and passed, none skipped: `agc_import_settle_initial_dcc`, `agc_write_tracking_rewatch_import_pages`, and #8527's `agc_import_settle_write_order` and `_other_family`. - **c097fca028, a merge of `main` 672c38f703**, after adriadam10's rebase onto `main` 2ace103a9c, on GitHub's runners: - One conflict, in `docs/dev/debt/libSceAgcDriver.md`. The `Compressed FMASK reads` entry keeps this PR's clause on an FMASK import awaiting its Windows deferred read (`WatchedAfterSettle`), and `main`'s `Multisampled CMASK state` and new `Multisampled DCC CMASK without fast clears` entries are kept as they are. In every other file the PR's diff has the same patch-id as before the merge. - **Focused set, 10 runs** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40084228807)), the import, settle, write-tracking, multisampled DCC and alpha-to-coverage tests the harness maps from the changed files: Linux: 73 run, 63 pass, 10 skip, 0 fail. Windows: 92 run, 9 pass, 83 skip (no Vulkan device), 0 fail. - The libc suite passes on both runners and the libkernel suite on Linux. On Windows the libkernel suite timed out `guest_raise_in_system_call`, which also timed out on `main`'s own Windows Build ([run](https://github.com/boykopovar/AnyPS5/actions/runs/39859731775), [run](https://github.com/boykopovar/AnyPS5/actions/runs/39861406807)); this PR changes nothing in libkernel. On this head it then passed 20 runs in a row, with the focused set ×20 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40088901942)): Linux: 69 run, 62 pass, 7 skip, 0 fail. Windows: 89 run, 10 pass, 79 skip, 0 fail, and both suites pass on both. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **02f6f8e66f, a merge of `main` 2fade7ef4e**, on GitHub's runners: - Two conflicts, both with #9159 (merged), and both keep both sides. In `libSceAgcDriver/CMakeLists.txt`, the write-tracking tests' `ENVIRONMENT_MODIFICATION` line lists #9159's `agc_rewatched_direct_shared`, `agc_import_alias_shared` and `agc_compared_shared_generations` as well as this PR's `agc_write_tracking_rewatch_import_pages`. In `tests/WriteTracking.cpp`, both sides' mode constants, test functions and dispatch are kept. In every other file the PR's added and removed lines are unchanged. - **Focused set, 10 runs** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40122745245)), the tests the harness maps from the changed files, the import, settle, write-tracking and multisampled DCC tests among them: Linux: 81 run, 70 pass, 11 skip, 0 fail. Windows: 103 run, 13 pass, 90 skip (no Vulkan device), 0 fail. - The libc and libkernel suites pass on both (143 and 205 tests on Linux, 170 and 221 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. **Overlap:** - **#8527:** merged (ea695358ee). This PR builds on its settle batch. - **#9940 (ours, the Linux case):** it touches the same check in `initialDccClear` and the FMASK checks. They compose with the settle first: a pending Windows settle returns the range to the watch, and anything still compared takes #9940's path. [`test/9724-both-main`](https://github.com/EagleBearerYS/AnyPS5/tree/test/9724-both-main) (6a9d64819f) is that resolution, and its focused set passes 77/77. Merge order: #9940 first. - **#8429 and `main` caa089fd73:** clean. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #9940 (merge order only, see Overlap) - [x] Fixes #9724 - [x] Unblocks: Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) on Windows, past `initial multisampled DCC contents require watched guest memory`, as babyhuey's run shows; their next stop is an FMASK format (see Tested) (no Game bring-up discussion yet) - [x] GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (Windows 11, 617.42); Mesa llvmpipe on a cloud Linux machine and GitHub's Linux runner; NVIDIA GeForce RTX 3060 Ti (617.42) and Intel Arc (101.9150), Windows 11, #8527's commits (BKlaasWerkman); NVIDIA GeForce RTX 4090 (617.42), Windows 11, the titles and the validation comparison (MaxLikesCode) - [x] AI-assisted: yes
MarcZX10 commented 2026-10-23 05:33:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T05:33:16Z.

Review: CHANGES_REQUESTED


Reviewed the exact current head f3eb5557ebbaa6afa0172177fd18d27ad76829a5, including the imported Queuse commits and the 256/257/1,025-import boundary regression. The new while (wanted()) path submits another batch when one batch is full and waits/reaps when all device batches are busy; the PR reports red/green GPU runs for those counts. I found no issue in that specific batch-limit fix.

This is still a draft and the title reproduction remains pending. Before this change is ready, please also refresh from current main: check_main_sync.py reports 9 ahead /353 behind and four touched files changed since merge base (CMakeLists.txt, Recorder.cpp, ARCHITECTURE.md, libSceAgcDriver debt), although the merge is clean. Preserve the declared #8527/#9940 ordering and Queuse’s commit attribution.

One validation gap: the touched behavior is Windows-only. The listed validation-layer comparison is llvmpipe/Linux, where the new Windows test skips; the RTX 3070 red/green runs are reported without the validation-layer/VUID comparison. CONTRIBUTING requires the focused AGC tests on main and the change with the Khronos layer and a VUID comparison. Please run that focused Windows test set on the same RTX 3070 with the required environment and ctest -V, for both baseline and refreshed head, and report the layer-load confirmation and VUID delta. I could not rerun GPU tests on this host. This request is for required integration/validation and title evidence, not queue size.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624318245 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9941#pullrequestreview-5624318245). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T05:33:16Z. **Review:** CHANGES_REQUESTED --- Reviewed the exact current head `f3eb5557ebbaa6afa0172177fd18d27ad76829a5`, including the imported Queuse commits and the 256/257/1,025-import boundary regression. The new `while (wanted())` path submits another batch when one batch is full and waits/reaps when all device batches are busy; the PR reports red/green GPU runs for those counts. I found no issue in that specific batch-limit fix. This is still a draft and the title reproduction remains pending. Before this change is ready, please also refresh from current `main`: `check_main_sync.py` reports 9 ahead /353 behind and four touched files changed since merge base (`CMakeLists.txt`, `Recorder.cpp`, `ARCHITECTURE.md`, `libSceAgcDriver` debt), although the merge is clean. Preserve the declared #8527/#9940 ordering and Queuse’s commit attribution. One validation gap: the touched behavior is Windows-only. The listed validation-layer comparison is llvmpipe/Linux, where the new Windows test skips; the RTX 3070 red/green runs are reported without the validation-layer/VUID comparison. CONTRIBUTING requires the focused AGC tests on main and the change with the Khronos layer and a VUID comparison. Please run that focused Windows test set on the same RTX 3070 with the required environment and `ctest -V`, for both baseline and refreshed head, and report the layer-load confirmation and VUID delta. I could not rerun GPU tests on this host. This request is for required integration/validation and title evidence, not queue size.
MarcZX10 commented 2026-10-23 11:35:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T11:35:31Z.

Review: DISMISSED


The two new page-aligned rewatch commits address the partial-import tail visible in #9724. The added tests cover partial-block, unaligned, and adjacent imports, including checks that pages outside the settled import remain unwatched. I reviewed those changes and the exact diff is whitespace-clean.

This head still needs current-main integration evidence. Its merge base is 513ca7e558; it is 618 commits behind current main 777bdbb4f8, with 11 commits ahead, and the branch changes the same AGC memory, write-tracking, test-registration and documentation areas. Please rebase the full stack while preserving #8527 and Queuse’s commit authorship, then rerun the focused Windows rewatch/multisampled-DCC tests on current main and the refreshed head with the required Khronos validation-layer comparison. The title reproduction is still listed as pending; after rebase, please run Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) on the refreshed head and report whether both pass the initial multisampled DCC stop. The current PR’s automatic product build jobs are skipped by policy, and I cannot dispatch the manual workflow from this account (GitHub returned 403 for an earlier PR dispatch). I am not treating the older-base evidence as validation of the current merge result.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5627662545 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9941#pullrequestreview-5627662545). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T11:35:31Z. **Review:** DISMISSED --- The two new page-aligned rewatch commits address the partial-import tail visible in #9724. The added tests cover partial-block, unaligned, and adjacent imports, including checks that pages outside the settled import remain unwatched. I reviewed those changes and the exact diff is whitespace-clean. This head still needs current-main integration evidence. Its merge base is `513ca7e558`; it is 618 commits behind current `main` `777bdbb4f8`, with 11 commits ahead, and the branch changes the same AGC memory, write-tracking, test-registration and documentation areas. Please rebase the full stack while preserving #8527 and Queuse’s commit authorship, then rerun the focused Windows rewatch/multisampled-DCC tests on current `main` and the refreshed head with the required Khronos validation-layer comparison. The title reproduction is still listed as pending; after rebase, please run Rush 2 Recompiled (PPSA69423) and Wave Race 64 Recompiled (PPSA69424) on the refreshed head and report whether both pass the initial multisampled DCC stop. The current PR’s automatic product build jobs are skipped by policy, and I cannot dispatch the manual workflow from this account (GitHub returned 403 for an earlier PR dispatch). I am not treating the older-base evidence as validation of the current merge result.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9941
No description provided.