fix(agc): store storage results pending under a multisampled color target before it takes the memory #13963

Merged
hugodearaujo merged 13 commits from upstream-pr/13963 into main 2026-11-21 20:54:52 +00:00
hugodearaujo commented 2026-10-31 14:09:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-31T14:09:14Z.


What

A multisampled color target whose samples live only on the host guards its guest memory: a CPU read of it throws "overlaps multisampled color target … whose samples are only on the host". A storage image can still have GPU results pending over that memory, produced before the target was drawn there. When the idle flush (VulkanDevice::StoreIdleResults → StorageTexture::FlushAllPending("idle")) stores that image later, a watched surface takes the CPU path of writeBackLayers, which reads the guest bytes of the units original does not hold (a GPU clear) with GuestMemory::ReadCommitted. That read crosses the target's guard and the title stops.

This PR stores those results before the target takes the memory, as a single-sample target's refresh already does (StorageTexture::Refresh → FlushPending): MultisampleTargetView (both overloads), MultisampleTargetOrderTarget, MaterializeMultisampleTargetClear and ResolveMultisampleTarget call StorageTexture::FlushPending over the target's guarded color bytes (guardedColorBytes) before they take targetsMutex and acquire (create, recreate or restamp) the target. The flush passes PublishScope::None, as the refresh does: the target takes no data from its color bytes in guest memory, so unit shadows over them are not published there (a reader that needs them publishes them, at the latest the idle flush). With nothing pending there, FlushPending returns from its pretest.

Still refused: storage results recorded after the target's last draw by a writer that did not claim it. The target's next draw, resolve or materialization now runs the same write-back first, so it throws "a CPU read" there; an idle store still throws it too. Either way the results stay pending and the target stays guarded. A plain CPU read of the target's memory is still refused too.

Unknown use. Since 3b459ef4d6 (oneandonlydean), an element the binding has no written flag for also claims the target, as the store-back already treats it as written. #13248 on its own still refuses it. 8c0aafff03 moves the guard test's unknown-use case and the debt entry to the new rule.

Why: Assassin's Creed Mirage (PPSA13960 01.007.000) on main + #13248. In about 1 run in 8 the title stops at 50-80 s:

[videoout] presentation failed: AGC graphics: a CPU read of 0x10dc1d0000+0x480000 overlaps multisampled color target 0x10dc450000+0x870000 (4 samples), whose samples are only on the host: guest access to it is not implemented

A diagnostic build (local only) prints a backtrace where that refusal is thrown:

[diag-bt] refuse a CPU read 0x10dc1d0000+0x480000 ... flushReason=idle writeBackImage=0x10dc1d0000+0x480000 target claimed=0 hostOnly=1
RequireNoMultisampleColorTarget <- GuestMemory::ReadCommitted <- StorageTexture::writeBackLayers <- StorageTexture::writeBack <- StorageTexture::FlushPending <- StorageTexture::FlushAllPending <- VulkanDevice::StoreIdleResults <- DriverDetail::Driver::run

On every frame of that screen the build also logs a 4x target (0x10dc450000+0x480000 and 0x10e0720000+0x870000) stamped over pending storage results. Usually the compute clear's store claims the target (#13248) before the idle flush runs. On the failing frame a new 4x target, 0x10dc450000+0x870000, is drawn after the clear, and the idle flush runs before anything claims it. That flush stores the 1x image 0x10dc1d0000 through the CPU path, which reads the whole image.

Tested

Linux 7.2.11, RADV (Mesa 26.2.6), AMD Radeon RX 9070 XT, Release, BUILD_TESTING=ON, on main 16345cad6a + #13248 11cfa16b5e (merge 383588ed19), this change on top (37417cec46, then 2fb6d79835: PublishScope::None for the store, after review). The checks below were run on 37417cec46. The "After review" item repeats them on 2fb6d79835.

  • agc_multisample_guest_access (agc_driver_recorder_tests --multisample-only, also in the full run), new multisampleTargetOverPendingStorageTests. Setup: a watched 256x256 R64KBX surface without host imports (the idle store takes the CPU path as in the title) and a 4x 64x64 target over its last 64 KiB. Results come from a recorded clear + MarkWholeWritten.
    • results recorded before the target's first draw: the idle store passes, nothing stays pending, guest memory holds the clear, and a CPU read of the target is still refused.
    • results of a store that claimed the target (ClaimMultisampleTargetStore), still pending at the target's next draw: same checks.
    • results recorded after the target's last draw by a writer that did not claim it: the target's next draw is refused with a CPU read and the results stay pending; the idle store after it is refused the same way, and the target stays guarded. Once the target is gone, they reach guest memory.
  • Negative control: the same test on the base (265201ee2d) fails at the first case with the title's message: an idle store after a multisampled target's draw over earlier storage results threw: AGC graphics: a CPU read of …+0x40000 overlaps multisampled color target …+0x10000 (4 samples), whose samples are only on the host.
  • Mutations, one at a time, each failing:
    • no store in the two MultisampleTargetView overloads: the first case's refusal.
    • store only when a target is created: an idle store after a multisampled target's next draw over a claiming store's results threw: … a CPU read ….
    • the write-back drops results under a guarded target instead of storing them: storage results recorded before a multisampled target's draw did not reach guest memory.
  • Validation layer on the base and on this change, same machine and the same 56 ctest entries (MSAA, FMASK, cached image, depth storage, storage cache/flush, image table and draw cache reuse), ctest -V with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1: 55/56 on both. The one failure on both is agc_driver_native_multisample_depth (host import vkAllocateMemory (-1000072003), which also fails on plain main here). Neither log has a VUID- line or was not found but was requested. Both logs have the same 25 Undefined-Value-ShaderOutputNotConsumed warnings.
  • Assassin's Creed Mirage, Cross every 30 s from 60 s:
    • main + #13248: 3 stops in 25 runs that got past startup, all on the refusal above. 2 of 14 were on the earlier base (3b32cc7b61 + #8223, 300 s / 110 s runs). 1 of 11 was on 16345cad6a, with diagnostic logging only, 110 s runs.
    • this change: 0 stops in 20 runs (9 of 300 s and 11 of 150 s; the stop came at 50-80 s). Each 300 s run reaches the Menu Narration screen and stays there until 300 s, at 12-16 frames per 10 s from 120 s on (the same rate as without the change). Runs that crashed at 3 s on startup (rc=139 right after sceKernelOpen /app0/streaminginstall.ini, a known intermittent crash with fresh run dirs, on both builds) are not counted.
    • At the base's rate (3/25), 20 runs pass without the stop by chance with p ≈ 0.08, so the title runs alone do not prove the fix. The backtrace and the unit test that reproduces the title's refusal on the base do.
  • After review (2fb6d79835, PublishScope::None), same machine:
    • agc_multisample_guest_access passes. The negative control (265201ee2d) still fails at the first case with a CPU read, and each mutation, applied to 2fb6d79835, still fails at its own check (the three above plus a CPU read that retires a host-only target: a CPU read of a resolved-only multisampled target's memory did not throw).
    • Validation layer, the same 56 entries on 37417cec46 and 2fb6d79835: 55/56 on both with identical per-test results (agc_driver_native_multisample_depth fails on both, as above). No VUID- line, no was not found but was requested, and 25 Undefined-Value-ShaderOutputNotConsumed warnings in each log.
    • Assassin's Creed Mirage: 0 stops in 6 runs of 150 s that got past startup (2 more crashed at 3 s on the known rc=139 after streaminginstall.ini and are not counted). Each run reaches 142 s with 15-27 frames per 10 s after the menu, the same rate as 37417cec46. By itself, 6 clean runs at the base's rate (3/25) mean little (p ≈ 0.46). With 37417cec46's 20 runs it is 0 in 26 (p ≈ 0.04).
  • tools/check_conventions.py --base 383588ed19 passes.
  • On current main (head ad007e4fe3: main 6db6a3e927 merged in, which has #13248):
    • Conflicts: in MultisampleTarget.cpp, main (#16483) starts the same five functions with a DccPublication. The store of earlier storage results stays first, before the publication's hold and the targets lock, as before. In the guard test, the stores line keeps this PR's written.empty() || written[0]; the rest of the file is main's.
    • It builds. The validation layer with ctest -V -R 'multisample|fmask|cached_image|depth_storage|storage_flush|storage_cache|image_table|draw_cache|agc_driver_recorder$|agc_multisample_guest_access' -E agc_storage_write_back_scratch gives 92 tests on main and on this change: 91 pass and agc_driver_image_table_vouched_lookups skips on both (the device reports written imported pages). agc_multisample_guest_access and the guard test's unknown-use cases pass. No VUID- line and no "was not found but was requested".
    • The guard test's unknown-use case already revalidates the cached binding after the target is drawn (it takes the same path as the store case). Negative control: with the cached revalidation alone made to drop the unknown-use claim, agc_driver_cached_image_multisample_guard fails at checking a compute storage image of unknown use over part of a 4x target.
    • tools/check_conventions.py --base 6db6a3e927 passes.

Runs by others.

  • Linux and Windows, by milescoviello (comment): head 8c0aafff03 and its merge base 4a467be387, agc_driver_recorder_tests, 3 runs each, Release. Ubuntu 26.04.1 with an RTX 4070 Ti (NVIDIA 615.71.09, GCC 15.2), and a Windows 11 VM with a GeForce GT 1030 (NVIDIA 582.78, WinLibs GCC 15.2 UCRT). agc_multisample_guest_access passes 3 of 3 on both sides on both machines, and no test differs between the base and the head. On Windows, agc_pipeline_cache_allocation_incomplete, _periodic and _same-size fail 3 of 3 on both sides.

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
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none)
  • Generic behaviour, not specific to one title
  • Depends on: none (#13248 is merged)
  • Fixes: none
  • Unblocks: PPSA13960 intermittent stop after the autosave notice (follow-up of #13248)
  • GPUs tested: AMD Radeon RX 9070 XT (RADV, Mesa 26.2.6), Linux; NVIDIA RTX 4070 Ti (Linux) and GeForce GT 1030 (Windows 11 VM), by milescoviello
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5098260917 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-31T14:09:14Z. --- ### What A multisampled color target whose samples live only on the host guards its guest memory: a CPU read of it throws "overlaps multisampled color target … whose samples are only on the host". A storage image can still have GPU results pending over that memory, produced before the target was drawn there. When the idle flush (`VulkanDevice::StoreIdleResults` → `StorageTexture::FlushAllPending("idle")`) stores that image later, a watched surface takes the CPU path of `writeBackLayers`, which reads the guest bytes of the units `original` does not hold (a GPU clear) with `GuestMemory::ReadCommitted`. That read crosses the target's guard and the title stops. This PR stores those results before the target takes the memory, as a single-sample target's refresh already does (`StorageTexture::Refresh` → `FlushPending`): `MultisampleTargetView` (both overloads), `MultisampleTargetOrderTarget`, `MaterializeMultisampleTargetClear` and `ResolveMultisampleTarget` call `StorageTexture::FlushPending` over the target's guarded color bytes (`guardedColorBytes`) before they take `targetsMutex` and acquire (create, recreate or restamp) the target. The flush passes `PublishScope::None`, as the refresh does: the target takes no data from its color bytes in guest memory, so unit shadows over them are not published there (a reader that needs them publishes them, at the latest the idle flush). With nothing pending there, `FlushPending` returns from its pretest. Still refused: storage results recorded after the target's last draw by a writer that did not claim it. The target's next draw, resolve or materialization now runs the same write-back first, so it throws "a CPU read" there; an idle store still throws it too. Either way the results stay pending and the target stays guarded. A plain CPU read of the target's memory is still refused too. **Unknown use.** Since `3b459ef4d6` (oneandonlydean), an element the binding has no written flag for also claims the target, as the store-back already treats it as written. #13248 on its own still refuses it. `8c0aafff03` moves the guard test's unknown-use case and the debt entry to the new rule. Why: Assassin's Creed Mirage (PPSA13960 01.007.000) on `main` + #13248. In about 1 run in 8 the title stops at 50-80 s: ``` [videoout] presentation failed: AGC graphics: a CPU read of 0x10dc1d0000+0x480000 overlaps multisampled color target 0x10dc450000+0x870000 (4 samples), whose samples are only on the host: guest access to it is not implemented ``` A diagnostic build (local only) prints a backtrace where that refusal is thrown: ``` [diag-bt] refuse a CPU read 0x10dc1d0000+0x480000 ... flushReason=idle writeBackImage=0x10dc1d0000+0x480000 target claimed=0 hostOnly=1 RequireNoMultisampleColorTarget <- GuestMemory::ReadCommitted <- StorageTexture::writeBackLayers <- StorageTexture::writeBack <- StorageTexture::FlushPending <- StorageTexture::FlushAllPending <- VulkanDevice::StoreIdleResults <- DriverDetail::Driver::run ``` On every frame of that screen the build also logs a 4x target (0x10dc450000+0x480000 and 0x10e0720000+0x870000) stamped over pending storage results. Usually the compute clear's store claims the target (#13248) before the idle flush runs. On the failing frame a new 4x target, 0x10dc450000+0x870000, is drawn after the clear, and the idle flush runs before anything claims it. That flush stores the 1x image 0x10dc1d0000 through the CPU path, which reads the whole image. ### Tested Linux 7.2.11, RADV (Mesa 26.2.6), AMD Radeon RX 9070 XT, Release, `BUILD_TESTING=ON`, on `main` 16345cad6a + #13248 11cfa16b5e (merge 383588ed19), this change on top (37417cec46, then 2fb6d79835: `PublishScope::None` for the store, after review). The checks below were run on 37417cec46. The "After review" item repeats them on 2fb6d79835. - `agc_multisample_guest_access` (`agc_driver_recorder_tests --multisample-only`, also in the full run), new `multisampleTargetOverPendingStorageTests`. Setup: a watched 256x256 R64KBX surface without host imports (the idle store takes the CPU path as in the title) and a 4x 64x64 target over its last 64 KiB. Results come from a recorded clear + `MarkWholeWritten`. - results recorded before the target's first draw: the idle store passes, nothing stays pending, guest memory holds the clear, and a CPU read of the target is still refused. - results of a store that claimed the target (`ClaimMultisampleTargetStore`), still pending at the target's next draw: same checks. - results recorded after the target's last draw by a writer that did not claim it: the target's next draw is refused with `a CPU read` and the results stay pending; the idle store after it is refused the same way, and the target stays guarded. Once the target is gone, they reach guest memory. - Negative control: the same test on the base (265201ee2d) fails at the first case with the title's message: `an idle store after a multisampled target's draw over earlier storage results threw: AGC graphics: a CPU read of …+0x40000 overlaps multisampled color target …+0x10000 (4 samples), whose samples are only on the host`. - Mutations, one at a time, each failing: - no store in the two `MultisampleTargetView` overloads: the first case's refusal. - store only when a target is created: `an idle store after a multisampled target's next draw over a claiming store's results threw: … a CPU read …`. - the write-back drops results under a guarded target instead of storing them: `storage results recorded before a multisampled target's draw did not reach guest memory`. - Validation layer on the base and on this change, same machine and the same 56 ctest entries (MSAA, FMASK, cached image, depth storage, storage cache/flush, image table and draw cache reuse), `ctest -V` with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`: 55/56 on both. The one failure on both is `agc_driver_native_multisample_depth` (host import `vkAllocateMemory (-1000072003)`, which also fails on plain `main` here). Neither log has a `VUID-` line or `was not found but was requested`. Both logs have the same 25 `Undefined-Value-ShaderOutputNotConsumed` warnings. - Assassin's Creed Mirage, Cross every 30 s from 60 s: - `main` + #13248: 3 stops in 25 runs that got past startup, all on the refusal above. 2 of 14 were on the earlier base (3b32cc7b61 + #8223, 300 s / 110 s runs). 1 of 11 was on 16345cad6a, with diagnostic logging only, 110 s runs. - this change: 0 stops in 20 runs (9 of 300 s and 11 of 150 s; the stop came at 50-80 s). Each 300 s run reaches the Menu Narration screen and stays there until 300 s, at 12-16 frames per 10 s from 120 s on (the same rate as without the change). Runs that crashed at 3 s on startup (`rc=139` right after `sceKernelOpen /app0/streaminginstall.ini`, a known intermittent crash with fresh run dirs, on both builds) are not counted. - At the base's rate (3/25), 20 runs pass without the stop by chance with p ≈ 0.08, so the title runs alone do not prove the fix. The backtrace and the unit test that reproduces the title's refusal on the base do. - After review (2fb6d79835, `PublishScope::None`), same machine: - `agc_multisample_guest_access` passes. The negative control (265201ee2d) still fails at the first case with `a CPU read`, and each mutation, applied to 2fb6d79835, still fails at its own check (the three above plus a CPU read that retires a host-only target: `a CPU read of a resolved-only multisampled target's memory did not throw`). - Validation layer, the same 56 entries on 37417cec46 and 2fb6d79835: 55/56 on both with identical per-test results (`agc_driver_native_multisample_depth` fails on both, as above). No `VUID-` line, no `was not found but was requested`, and 25 `Undefined-Value-ShaderOutputNotConsumed` warnings in each log. - Assassin's Creed Mirage: 0 stops in 6 runs of 150 s that got past startup (2 more crashed at 3 s on the known `rc=139` after `streaminginstall.ini` and are not counted). Each run reaches 142 s with 15-27 frames per 10 s after the menu, the same rate as 37417cec46. By itself, 6 clean runs at the base's rate (3/25) mean little (p ≈ 0.46). With 37417cec46's 20 runs it is 0 in 26 (p ≈ 0.04). - `tools/check_conventions.py --base 383588ed19` passes. - **On current `main`** (head `ad007e4fe3`: `main` 6db6a3e927 merged in, which has #13248): - Conflicts: in `MultisampleTarget.cpp`, `main` (#16483) starts the same five functions with a `DccPublication`. The store of earlier storage results stays first, before the publication's hold and the targets lock, as before. In the guard test, the `stores` line keeps this PR's `written.empty() || written[0]`; the rest of the file is `main`'s. - It builds. The validation layer with `ctest -V -R 'multisample|fmask|cached_image|depth_storage|storage_flush|storage_cache|image_table|draw_cache|agc_driver_recorder$|agc_multisample_guest_access' -E agc_storage_write_back_scratch` gives 92 tests on `main` and on this change: 91 pass and `agc_driver_image_table_vouched_lookups` skips on both (the device reports written imported pages). `agc_multisample_guest_access` and the guard test's unknown-use cases pass. No `VUID-` line and no "was not found but was requested". - The guard test's unknown-use case already revalidates the cached binding after the target is drawn (it takes the same path as the store case). Negative control: with the cached revalidation alone made to drop the unknown-use claim, `agc_driver_cached_image_multisample_guard` fails at `checking a compute storage image of unknown use over part of a 4x target`. - `tools/check_conventions.py --base 6db6a3e927` passes. **Runs by others.** - **Linux and Windows, by milescoviello** ([comment](https://github.com/boykopovar/AnyPS5/pull/13963#issuecomment-6767688715)): head `8c0aafff03` and its merge base `4a467be387`, `agc_driver_recorder_tests`, 3 runs each, Release. Ubuntu 26.04.1 with an RTX 4070 Ti (NVIDIA 615.71.09, GCC 15.2), and a Windows 11 VM with a GeForce GT 1030 (NVIDIA 582.78, WinLibs GCC 15.2 UCRT). `agc_multisample_guest_access` passes 3 of 3 on both sides on both machines, and no test differs between the base and the head. On Windows, `agc_pipeline_cache_allocation_incomplete`, `_periodic` and `_same-size` fail 3 of 3 on both sides. ### Checklist - [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 - [x] Unimplemented paths throw - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#13248 is merged) - [x] Fixes: none - [x] Unblocks: PPSA13960 intermittent stop after the autosave notice (follow-up of #13248) - [x] GPUs tested: AMD Radeon RX 9070 XT (RADV, Mesa 26.2.6), Linux; NVIDIA RTX 4070 Ti (Linux) and GeForce GT 1030 (Windows 11 VM), by milescoviello - [x] AI-assisted: yes
MarcZX10 commented 2026-10-31 14:23:05 +00:00 (Migrated from github.com)

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

Review: DISMISSED


Reviewed — changes requested

At head 37417cec46307f537be995c8532b0e02ab231a42 on base 73f4f7e06e4f210a8c6570e335fd654dc0a86134, the new multisample claim path does not preserve the existing conservative behavior for storage-image bindings whose imageWritten metadata is absent.

What I ran

Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. The stack preview merged cleanly and confirmed #13248 is included in this head. I did not build or run C++ tests locally.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13963
gh pr checks 13963 -R boykopovar/AnyPS5
git show 37417cec46307f537be995c8532b0e02ab231a42:core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp

Results

Check Result
Diff check Passed
Conventions and PR template Passed
Dependency and merge preview Passed; #13248 is included
Hosted conventions, intake, labels, library-portability, report Passed
Hosted Windows In progress when checked
Linux and specialized hosted jobs Skipped
Local C++ build/tests Not run
Precheck output
All conventions checks passed.

Negative control

Assertion Change to code under test Did the new test fail?
A storage-image binding without imageWritten flags is treated as a possible write and claims an overlapping multisample target Clear binding.imageWritten, as the existing DrawWriteRanges test does Not exercised; no C++ build/test was run. Source inspection shows written is true while stored is false in this case.

Findings

Blocking

  • At ShaderResources.cpp:5091-5107, a missing imageWritten entry makes written true but stored false. Therefore this path neither calls claimStoredMultisampleMemory nor records storedWords for revalidateFull. An overlapping host-only multisample target can remain unclaimed, so the storage result is still rejected instead of following the new claim-and-store path. The repository already treats missing image-write metadata conservatively as a write in DrawWriteRanges.cpp:73-74.

    The smallest code correction is to make the claim metadata follow the same conservative result as written:

    const bool stored = written;
    

    Please add an execution test with an empty imageWritten vector that exercises the overlapping-target claim and verifies the expected pending-store behavior.

Non-blocking

None identified.

Sources

Not verified

No local build, C++ tests, or GPU runs. The detailed AMD validation and title-run results in the PR description are author-reported; I did not reproduce them. Hosted Windows was still running when checked.

To get this to a good state

Preserve the conservative missing-metadata behavior in the claim path and add the regression test described above. I will rerun the same precheck and inspect the updated diff and CI on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5723231568 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5723231568). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T14:23:05Z. **Review:** DISMISSED --- # Reviewed — changes requested At head `37417cec46307f537be995c8532b0e02ab231a42` on base `73f4f7e06e4f210a8c6570e335fd654dc0a86134`, the new multisample claim path does not preserve the existing conservative behavior for storage-image bindings whose `imageWritten` metadata is absent. ## What I ran Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. The stack preview merged cleanly and confirmed #13248 is included in this head. I did not build or run C++ tests locally. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13963 gh pr checks 13963 -R boykopovar/AnyPS5 git show 37417cec46307f537be995c8532b0e02ab231a42:core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp ``` ## Results | Check | Result | |---|---| | Diff check | Passed | | Conventions and PR template | Passed | | Dependency and merge preview | Passed; #13248 is included | | Hosted conventions, intake, labels, library-portability, report | Passed | | Hosted Windows | In progress when checked | | Linux and specialized hosted jobs | Skipped | | Local C++ build/tests | Not run | <details><summary>Precheck output</summary> ```text All conventions checks passed. ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | A storage-image binding without `imageWritten` flags is treated as a possible write and claims an overlapping multisample target | Clear `binding.imageWritten`, as the existing `DrawWriteRanges` test does | Not exercised; no C++ build/test was run. Source inspection shows `written` is true while `stored` is false in this case. | ## Findings ### Blocking - At [`ShaderResources.cpp:5091-5107`](https://github.com/boykopovar/AnyPS5/blob/37417cec46307f537be995c8532b0e02ab231a42/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L5091-L5107), a missing `imageWritten` entry makes `written` true but `stored` false. Therefore this path neither calls `claimStoredMultisampleMemory` nor records `storedWords` for `revalidateFull`. An overlapping host-only multisample target can remain unclaimed, so the storage result is still rejected instead of following the new claim-and-store path. The repository already treats missing image-write metadata conservatively as a write in [`DrawWriteRanges.cpp:73-74`](https://github.com/boykopovar/AnyPS5/blob/37417cec46307f537be995c8532b0e02ab231a42/core/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cpp#L73-L74). The smallest code correction is to make the claim metadata follow the same conservative result as `written`: ```suggestion const bool stored = written; ``` Please add an execution test with an empty `imageWritten` vector that exercises the overlapping-target claim and verifies the expected pending-store behavior. ### Non-blocking None identified. ## Sources - [Storage-image resolution at reviewed head](https://github.com/boykopovar/AnyPS5/blob/37417cec46307f537be995c8532b0e02ab231a42/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L5091-L5107) - [Existing missing-metadata write behavior at reviewed head](https://github.com/boykopovar/AnyPS5/blob/37417cec46307f537be995c8532b0e02ab231a42/core/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cpp#L73-L74) ## Not verified No local build, C++ tests, or GPU runs. The detailed AMD validation and title-run results in the PR description are author-reported; I did not reproduce them. Hosted Windows was still running when checked. ## To get this to a good state Preserve the conservative missing-metadata behavior in the claim path and add the regression test described above. I will rerun the same precheck and inspect the updated diff and CI on the new head.
XairRrR commented 2026-11-03 00:11:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T00:11:17Z.

Review: APPROVED


Reviewed — approved

Before any of the five acquire callers creates, recreates or restamps a multisampled target, they now store storage results still pending over its color bytes. On a clean worktree this fixes the idle-store refusal that the new test reproduces, and the negative control fails with the title's message.

What I ran

Head 95a0f94a7e64d31a7611f63d88f3cb542e684aba, main 5cb015caaaaf83f8ee431414ee6a457b5b307d49, merged tree a16594959d2244848969cf827c1e99c967154d46. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), Release, BUILD_TESTING=ON.

git diff --check 5cb015caaaaf83f8ee431414ee6a457b5b307d49...95a0f94a7e64d31a7611f63d88f3cb542e684aba
python3 tools/check_conventions.py --base 5cb015caaaaf83f8ee431414ee6a457b5b307d49
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard|agc_driver_image_sample_lod_clamp_shader_lane)$"
ctest --test-dir build -V -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$"
# negative control 1: storeEarlierStorageResults body replaced by a no-op
ninja -C build -j32 -l32 agc_driver_recorder_tests
ctest --test-dir build --output-on-failure -R "^agc_multisample_guest_access$"
# negative control 2: all four production files restored from main
ninja -C build -j32 -l32 agc_driver_cached_image_multisample_guard_tests agc_driver_image_sample_lod_clamp_tests
ctest --test-dir build --output-on-failure -R "^(agc_driver_cached_image_multisample_guard|agc_driver_image_sample_lod_clamp_shader_lane)$"
# restore the merged files, rebuild, rerun
ninja -C build -j32 -l32 agc_driver_cached_image_multisample_guard_tests agc_driver_image_sample_lod_clamp_tests agc_driver_recorder_tests
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_driver_cached_image_multisample_guard|agc_multisample_guest_access)$"
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure / build / libs (script) ok
agc_multisample_guest_access (includes the new multisampleTargetOverPendingStorageTests) Passed, 0.18 s
agc_driver_cached_image_multisample_guard (new CheckStoredImage cases) Passed, 0.16 s
Selected test run (script) 2174 run, 2054 passed, 112 skips all expected; 2 new failures, neither caused by this PR (see below)
agc_driver_image_sample_lod_clamp_shader_lane Fails the same way when the production files are restored from main, so it comes from main (the baseline 096c4557 is older than main)
unwrap_self_..._test_new_output_inherits_the_destination_directory_group os.chown → EINVAL in the sandbox. This PR changes nothing under tools/ or anything that test loads, so the failure is environmental
Validation layer (script, 759 tests, layer loaded in 758, none listed as missing) 0 tests with new VUID- lines compared with main
Test time Both changed tests finish in under 1 s
Verbose output of the changed tests (merged tree)
998: checking a compute storage image store over part of a 4x target
998: checking a compute storage image read over part of a 4x target
998: checking a compute storage image of unknown use over part of a 4x target
998: checking a compute storage image store over a one-fragment target's FMASK
998: checking a draw storage image store over part of a 4x target
998: checking a draw storage image read over part of a 4x target
998: checking a draw storage image of unknown use over part of a 4x target
998: checking a draw storage image store over a one-fragment target's FMASK
998: cached image multisample guard tests passed
1926: Multisampled target guest access tests passed
1926: [gpu] a single-sample storage image store to 0x7f7e5fc40000+0x10000 claims the memory of multisampled color target 0x7f7e5fc40000+0x10000 (4 samples)
1926: Storage results under a multisampled target: passed
lod_clamp failure, identical with main's production files
AGC graphics: image_sample_lz through the S# that holds the LOD at 0 with T# MIN_LOD 768 over BASE_LEVEL 0 with a second S# of words 1 0 and 2 5242880, and a second T# of MIN_LOD 0 and LAST_LEVEL 0: thread 0 component 1 is 0.000000, expected 0.062500

Negative control

  • This PR's own change: I made the body of storeEarlierStorageResults a no-op, leaving the rest of the merged tree as it was. agc_multisample_guest_access then fails at the first case with the title's message:
    an idle store after a multisampled target's draw over earlier storage results threw: AGC graphics: a CPU read of 0x7fb8dfa10000+0x40000 overlaps multisampled color target 0x7fb8dfa40000+0x10000 (4 samples), whose samples are only on the host
    
  • All production files from main (MultisampleTarget.{hpp,cpp}, ShaderResources.{hpp,cpp}, which also removes #13248's claim path): agc_driver_cached_image_multisample_guard fails at checking a compute storage image store over part of a 4x target with a cached image access ... overlaps multisampled color target. I couldn't build the recorder test in this state because it uses ClaimMultisampleTargetStore.
  • After both controls I restored the merged files and rebuilt. Both tests pass again, and git status --porcelain is empty.

Findings

Blocking

None.

Non-blocking

  • The "still refused" case can now stop at the target's next draw, not only at the idle flush. See MultisampleTarget.cpp:971-973. The setup: a writer that did not claim the target records results after the target's last draw, and the target is then drawn, resolved or materialized again. storeEarlierStorageResults now runs the same writeBack CPU path that the idle flush runs. That path reads guest bytes under the still-guarded target, so I expect the refusal to be thrown from MultisampleTargetView / ResolveMultisampleTarget instead of from StoreIdleResults.
    • Both versions stop, so this is not a regression of the "unimplemented paths throw" rule. It does change where the stop is reported.
    • The new test covers this case only with an idle store (Recorder.cpp:11254 is followed directly by idleStore()).
    • Suggestion: extend the third case with a draw() that expects the same refusal, and check that the results stay pending afterwards. Also mention the draw-time refusal in the description's "Still refused" paragraph. I tried to probe this locally, but the review environment did not allow editing the test, so this point is from reading the code only.
  • A per-draw cost for every multisampled target. FlushPending calls FlushDepthPlanes(address, bytes) before its pretest (Texture.cpp:4516-4517). Every multisampled target's view, order target, clear materialization and resolve now pays for that call plus the pending-list pretest. The author's frame-rate numbers show no change in the title, so this is only for awareness.

On the earlier review threads:

  • MarcZX10's blocking point (stored vs written). I didn't apply the suggested change. On the merged tree I confirmed that the CheckStoredImage(..., {}, false) "of unknown use" cases (compute and draw) run and pass. Those cases require the refusal for an element without an imageWritten flag, which supports the author's answer.
  • oneandonlydean's PublishScope::None point. It is addressed at this head (MultisampleTarget.cpp:972).

Not verified

  • I didn't test on non-lavapipe GPUs. The author reports RADV on an RX 9070 XT, the comments report an RX 6700 XT on Windows and NVIDIA CI, and I did not reproduce those.
  • I didn't run the title, so the Assassin's Creed Mirage stop rate and backtrace are as the author reports them.
  • I didn't reproduce the author's mutations other than the no-op store.
  • Thread safety of FlushPending running outside targetsMutex but under the draw's GpuMutex: I checked it only by reading the code and by the tests, which call it with GpuMutex held.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5745248477 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5745248477). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T00:11:17Z. **Review:** APPROVED --- # Reviewed — approved Before any of the five `acquire` callers creates, recreates or restamps a multisampled target, they now store storage results still pending over its color bytes. On a clean worktree this fixes the idle-store refusal that the new test reproduces, and the negative control fails with the title's message. ## What I ran Head `95a0f94a7e64d31a7611f63d88f3cb542e684aba`, `main` `5cb015caaaaf83f8ee431414ee6a457b5b307d49`, merged tree `a16594959d2244848969cf827c1e99c967154d46`. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), Release, `BUILD_TESTING=ON`. ```sh git diff --check 5cb015caaaaf83f8ee431414ee6a457b5b307d49...95a0f94a7e64d31a7611f63d88f3cb542e684aba python3 tools/check_conventions.py --base 5cb015caaaaf83f8ee431414ee6a457b5b307d49 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard|agc_driver_image_sample_lod_clamp_shader_lane)$" ctest --test-dir build -V -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$" # negative control 1: storeEarlierStorageResults body replaced by a no-op ninja -C build -j32 -l32 agc_driver_recorder_tests ctest --test-dir build --output-on-failure -R "^agc_multisample_guest_access$" # negative control 2: all four production files restored from main ninja -C build -j32 -l32 agc_driver_cached_image_multisample_guard_tests agc_driver_image_sample_lod_clamp_tests ctest --test-dir build --output-on-failure -R "^(agc_driver_cached_image_multisample_guard|agc_driver_image_sample_lod_clamp_shader_lane)$" # restore the merged files, rebuild, rerun ninja -C build -j32 -l32 agc_driver_cached_image_multisample_guard_tests agc_driver_image_sample_lod_clamp_tests agc_driver_recorder_tests ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_driver_cached_image_multisample_guard|agc_multisample_guest_access)$" git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure / build / `libs` (script) | ok | | `agc_multisample_guest_access` (includes the new `multisampleTargetOverPendingStorageTests`) | Passed, 0.18 s | | `agc_driver_cached_image_multisample_guard` (new `CheckStoredImage` cases) | Passed, 0.16 s | | Selected test run (script) | 2174 run, 2054 passed, 112 skips all expected; 2 new failures, neither caused by this PR (see below) | | `agc_driver_image_sample_lod_clamp_shader_lane` | Fails the same way when the production files are restored from `main`, so it comes from `main` (the baseline `096c4557` is older than `main`) | | `unwrap_self_..._test_new_output_inherits_the_destination_directory_group` | `os.chown` → `EINVAL` in the sandbox. This PR changes nothing under `tools/` or anything that test loads, so the failure is environmental | | Validation layer (script, 759 tests, layer loaded in 758, none listed as missing) | 0 tests with new `VUID-` lines compared with `main` | | Test time | Both changed tests finish in under 1 s | <details><summary>Verbose output of the changed tests (merged tree)</summary> ``` 998: checking a compute storage image store over part of a 4x target 998: checking a compute storage image read over part of a 4x target 998: checking a compute storage image of unknown use over part of a 4x target 998: checking a compute storage image store over a one-fragment target's FMASK 998: checking a draw storage image store over part of a 4x target 998: checking a draw storage image read over part of a 4x target 998: checking a draw storage image of unknown use over part of a 4x target 998: checking a draw storage image store over a one-fragment target's FMASK 998: cached image multisample guard tests passed 1926: Multisampled target guest access tests passed 1926: [gpu] a single-sample storage image store to 0x7f7e5fc40000+0x10000 claims the memory of multisampled color target 0x7f7e5fc40000+0x10000 (4 samples) 1926: Storage results under a multisampled target: passed ``` </details> <details><summary>lod_clamp failure, identical with main's production files</summary> ``` AGC graphics: image_sample_lz through the S# that holds the LOD at 0 with T# MIN_LOD 768 over BASE_LEVEL 0 with a second S# of words 1 0 and 2 5242880, and a second T# of MIN_LOD 0 and LAST_LEVEL 0: thread 0 component 1 is 0.000000, expected 0.062500 ``` </details> ## Negative control - **This PR's own change:** I made the body of `storeEarlierStorageResults` a no-op, leaving the rest of the merged tree as it was. `agc_multisample_guest_access` then fails at the first case with the title's message: ``` an idle store after a multisampled target's draw over earlier storage results threw: AGC graphics: a CPU read of 0x7fb8dfa10000+0x40000 overlaps multisampled color target 0x7fb8dfa40000+0x10000 (4 samples), whose samples are only on the host ``` - **All production files from `main`** (`MultisampleTarget.{hpp,cpp}`, `ShaderResources.{hpp,cpp}`, which also removes #13248's claim path): `agc_driver_cached_image_multisample_guard` fails at `checking a compute storage image store over part of a 4x target` with `a cached image access ... overlaps multisampled color target`. I couldn't build the recorder test in this state because it uses `ClaimMultisampleTargetStore`. - After both controls I restored the merged files and rebuilt. Both tests pass again, and `git status --porcelain` is empty. ## Findings ### Blocking None. ### Non-blocking - **The "still refused" case can now stop at the target's next draw, not only at the idle flush.** See [`MultisampleTarget.cpp:971-973`](https://github.com/boykopovar/AnyPS5/blob/95a0f94a7e64d31a7611f63d88f3cb542e684aba/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L971-L973). The setup: a writer that did not claim the target records results after the target's last draw, and the target is then drawn, resolved or materialized again. `storeEarlierStorageResults` now runs the same `writeBack` CPU path that the idle flush runs. That path reads guest bytes under the still-guarded target, so I expect the refusal to be thrown from `MultisampleTargetView` / `ResolveMultisampleTarget` instead of from `StoreIdleResults`. - Both versions stop, so this is not a regression of the "unimplemented paths throw" rule. It does change where the stop is reported. - The new test covers this case only with an idle store ([`Recorder.cpp:11254`](https://github.com/boykopovar/AnyPS5/blob/95a0f94a7e64d31a7611f63d88f3cb542e684aba/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L11254) is followed directly by `idleStore()`). - Suggestion: extend the third case with a `draw()` that expects the same refusal, and check that the results stay pending afterwards. Also mention the draw-time refusal in the description's "Still refused" paragraph. I tried to probe this locally, but the review environment did not allow editing the test, so this point is from reading the code only. - **A per-draw cost for every multisampled target.** `FlushPending` calls `FlushDepthPlanes(address, bytes)` before its pretest ([`Texture.cpp:4516-4517`](https://github.com/boykopovar/AnyPS5/blob/95a0f94a7e64d31a7611f63d88f3cb542e684aba/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L4516-L4517)). Every multisampled target's view, order target, clear materialization and resolve now pays for that call plus the pending-list pretest. The author's frame-rate numbers show no change in the title, so this is only for awareness. On the earlier review threads: - **MarcZX10's blocking point (`stored` vs `written`).** I didn't apply the suggested change. On the merged tree I confirmed that the `CheckStoredImage(..., {}, false)` "of unknown use" cases (compute and draw) run and pass. Those cases require the refusal for an element without an `imageWritten` flag, which supports the author's answer. - **oneandonlydean's `PublishScope::None` point.** It is addressed at this head (`MultisampleTarget.cpp:972`). ## Not verified - I didn't test on non-lavapipe GPUs. The author reports RADV on an RX 9070 XT, the comments report an RX 6700 XT on Windows and NVIDIA CI, and I did not reproduce those. - I didn't run the title, so the Assassin's Creed Mirage stop rate and backtrace are as the author reports them. - I didn't reproduce the author's mutations other than the no-op store. - Thread safety of `FlushPending` running outside `targetsMutex` but under the draw's `GpuMutex`: I checked it only by reading the code and by the tests, which call it with `GpuMutex` held. <!-- anyps5-bots job=2214 head=95a0f94a7e64d31a7611f63d88f3cb542e684aba -->
XairRrR commented 2026-11-03 22:28:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T22:28:45Z.

Review: APPROVED


Re-checked — approved

The only change since my last review is a merge of main 04a9eb4fa2 (67c62dc509). At all five acquire callers it keeps storeEarlierStorageResults(...) right before #13021's TargetsLock. The changed tests pass, and the negative control still fails with the title's message.

What changed since my last review

  • The PR's three own commits are unchanged: delta.patch shows 88091bc014, 37417cec46 and 2fb6d79835 as identical.

  • New commit: 67c62dc509, a merge of main with one conflict in MultisampleTarget.cpp. #13021 replaced std::lock_guard with TargetsLock (a lock_guard on targetsMutex() that also sets the thread-local targetsMutexHeld).

  • In the merged tree, every acquire(context, …) call is preceded by the store, which runs outside the targets lock:

    • MultisampleTargetOrderTarget
    • both MultisampleTargetView overloads
    • MaterializeMultisampleTargetClear
    • ResolveMultisampleTarget

    See MultisampleTarget.cpp:1377-1380 and :1520-1523. grep "acquire(context" finds no other callers.

  • storeEarlierStorageResults is unchanged and still passes PublishScope::None (:964-966). This matches the author's comment of 2026-11-03.

  • The description and checklist have no relevant edits.

What I ran

Head 67c62dc50922bda65302eccb021a2af62cf5f48b, main 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24, merged tree 232e8b4969fa17be45f4ad28809f89111038ddc2. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), Release, BUILD_TESTING=ON.

git diff --check 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24...67c62dc50922bda65302eccb021a2af62cf5f48b
python3 tools/check_conventions.py --base 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$"
# negative control: storeEarlierStorageResults body disabled (if (false) before the FlushPending call)
ninja -C build -j32 -l32 agc_driver_recorder_tests
ctest --test-dir build --output-on-failure -R "^agc_multisample_guest_access$"
# restore the merged file, rebuild, rerun
git show 232e8b4969fa17be45f4ad28809f89111038ddc2:core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
ninja -C build -j32 -l32 agc_driver_recorder_tests agc_driver_cached_image_multisample_guard_tests
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$"
git status --porcelain
Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure / build / libs (script) ok
Selected tests (script) 2180 run, 2058 passed, 115 expected skips, 0 new failures. The 7 failures (agc_driver_division, the denormal-mode tests, unwrap_self_…, vector_constant_factor_tininess) also fail on the baseline.
agc_driver_cached_image_multisample_guard Passed, 0.17 s
agc_multisample_guest_access Passed, 0.19 s
Validation layer (script, 783 tests; the layer loaded in 782 and none are listed as missing) One test with new VUID- lines: agc_driver_image_gather_volume (VkSamplerCreateInfo-addressMode*), marked "test not run on main". That test did not run on the baseline 1e658521, which is older than main. Several 3D-gather commits landed on main after the baseline (e.g. e92ec413c9, 27d9dc2e4e, a3834314f8). This PR changes no sampler or gather code, so I don't count it against the PR.
git status --porcelain after restoring empty

Negative control

With the body of storeEarlierStorageResults disabled on the merged tree, agc_multisample_guest_access fails at the first case with the title's message:

AGC graphics: an idle store after a multisampled target's draw over earlier storage results threw: AGC graphics: a CPU read of 0x7f580d630000+0x40000 overlaps multisampled color target 0x7f580d660000+0x10000 (4 samples), whose samples are only on the host: guest access to it is not implemented

After I restored the merged file and rebuilt, both tests pass again and the worktree matches the merged tree.

Previous findings

  • Non-blocking: the "still refused" case can now stop at the target's next draw, not only at the idle flush. Still open. The code and test are unchanged: the third case is still followed only by idleStore(). This does not block the PR.
  • Non-blocking: a per-draw FlushDepthPlanes + pretest cost for every multisampled target. Still open, for awareness only. The code is unchanged.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • No runs on non-lavapipe GPUs. The author's RADV RX 9070 XT runs on this merge are author-reported.
  • I did not run the title, so the PPSA13960 stop rate is author-reported.
  • I did not check by running it whether the agc_driver_image_gather_volume VUIDs also appear on current main. My attribution to main rests on the baseline age, the gather commits that landed on main after the baseline, and the PR not touching sampler code.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5760391327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5760391327). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T22:28:45Z. **Review:** APPROVED --- # Re-checked — approved The only change since my last review is a merge of `main` `04a9eb4fa2` (`67c62dc509`). At all five `acquire` callers it keeps `storeEarlierStorageResults(...)` right before #13021's `TargetsLock`. The changed tests pass, and the negative control still fails with the title's message. ## What changed since my last review - The PR's three own commits are unchanged: delta.patch shows `88091bc014`, `37417cec46` and `2fb6d79835` as identical. - New commit: `67c62dc509`, a merge of `main` with one conflict in `MultisampleTarget.cpp`. #13021 replaced `std::lock_guard` with `TargetsLock` (a `lock_guard` on `targetsMutex()` that also sets the thread-local `targetsMutexHeld`). - In the merged tree, every `acquire(context, …)` call is preceded by the store, which runs outside the targets lock: - `MultisampleTargetOrderTarget` - both `MultisampleTargetView` overloads - `MaterializeMultisampleTargetClear` - `ResolveMultisampleTarget` See [`MultisampleTarget.cpp:1377-1380`](https://github.com/boykopovar/AnyPS5/blob/67c62dc50922bda65302eccb021a2af62cf5f48b/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L1377-L1380) and [`:1520-1523`](https://github.com/boykopovar/AnyPS5/blob/67c62dc50922bda65302eccb021a2af62cf5f48b/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L1520-L1523). `grep "acquire(context"` finds no other callers. - `storeEarlierStorageResults` is unchanged and still passes `PublishScope::None` ([`:964-966`](https://github.com/boykopovar/AnyPS5/blob/67c62dc50922bda65302eccb021a2af62cf5f48b/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L964-L966)). This matches the author's comment of 2026-11-03. - The description and checklist have no relevant edits. ## What I ran Head `67c62dc50922bda65302eccb021a2af62cf5f48b`, `main` `04a9eb4fa2877eb6e40bf2c83adf972e40d89b24`, merged tree `232e8b4969fa17be45f4ad28809f89111038ddc2`. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), Release, `BUILD_TESTING=ON`. ```sh git diff --check 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24...67c62dc50922bda65302eccb021a2af62cf5f48b python3 tools/check_conventions.py --base 04a9eb4fa2877eb6e40bf2c83adf972e40d89b24 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$" # negative control: storeEarlierStorageResults body disabled (if (false) before the FlushPending call) ninja -C build -j32 -l32 agc_driver_recorder_tests ctest --test-dir build --output-on-failure -R "^agc_multisample_guest_access$" # restore the merged file, rebuild, rerun git show 232e8b4969fa17be45f4ad28809f89111038ddc2:core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp ninja -C build -j32 -l32 agc_driver_recorder_tests agc_driver_cached_image_multisample_guard_tests ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$" git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure / build / `libs` (script) | ok | | Selected tests (script) | 2180 run, 2058 passed, 115 expected skips, **0 new failures**. The 7 failures (`agc_driver_division`, the denormal-mode tests, `unwrap_self_…`, `vector_constant_factor_tininess`) also fail on the baseline. | | `agc_driver_cached_image_multisample_guard` | Passed, 0.17 s | | `agc_multisample_guest_access` | Passed, 0.19 s | | Validation layer (script, 783 tests; the layer loaded in 782 and none are listed as missing) | One test with new `VUID-` lines: `agc_driver_image_gather_volume` (`VkSamplerCreateInfo-addressMode*`), marked "test not run on main". That test did not run on the baseline `1e658521`, which is older than `main`. Several 3D-gather commits landed on `main` after the baseline (e.g. `e92ec413c9`, `27d9dc2e4e`, `a3834314f8`). This PR changes no sampler or gather code, so I don't count it against the PR. | | `git status --porcelain` after restoring | empty | ## Negative control With the body of `storeEarlierStorageResults` disabled on the merged tree, `agc_multisample_guest_access` fails at the first case with the title's message: ``` AGC graphics: an idle store after a multisampled target's draw over earlier storage results threw: AGC graphics: a CPU read of 0x7f580d630000+0x40000 overlaps multisampled color target 0x7f580d660000+0x10000 (4 samples), whose samples are only on the host: guest access to it is not implemented ``` After I restored the merged file and rebuilt, both tests pass again and the worktree matches the merged tree. ## Previous findings - **Non-blocking: the "still refused" case can now stop at the target's next draw, not only at the idle flush.** Still open. The code and test are unchanged: the third case is still followed only by `idleStore()`. This does not block the PR. - **Non-blocking: a per-draw `FlushDepthPlanes` + pretest cost for every multisampled target.** Still open, for awareness only. The code is unchanged. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - No runs on non-lavapipe GPUs. The author's RADV RX 9070 XT runs on this merge are author-reported. - I did not run the title, so the PPSA13960 stop rate is author-reported. - I did not check by running it whether the `agc_driver_image_gather_volume` VUIDs also appear on current `main`. My attribution to `main` rests on the baseline age, the gather commits that landed on `main` after the baseline, and the PR not touching sampler code. <!-- anyps5-bots job=3663 head=67c62dc50922bda65302eccb021a2af62cf5f48b -->
XairRrR commented 2026-11-03 23:44:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T23:44:18Z.

Review: APPROVED


Re-checked — approved

The only new commit is fc1dfc03ab, a test-only change. In multisampleTargetOverPendingStorageTests, the third case now draws the target before the idle store. It requires that draw to be refused with a CPU read and requires the results to still be pending afterwards. The test passes, and a mutation aimed at the new assertion makes it fail.

What changed since my last review

  • delta.patch: commits 88091bc014, 37417cec46 and 2fb6d79835 are identical to what I reviewed. One new commit, fc1dfc03ab, adds 14 lines to core/libs/prx/libSceAgcDriver/tests/Recorder.cpp and changes no production code:
    • a refusedDraw helper, which calls MultisampleTargetView under GpuMutex and captures the exception message;
    • in the third case, after the unclaimed clear and before idleStore(): refused(refusedDraw()), then AnyPendingOverlaps(surface) (Recorder.cpp:11843-11845).
  • The author replied on 2026-11-03 and updated the description. The "Still refused" paragraph now says the target's next draw, resolve or materialization throws a CPU read, and that the idle store still throws it too. This matches the code and the new test.
  • The author acknowledged the per-draw flush cost and did not change it, because the title's frame rate did not move.

What I ran

Head fc1dfc03abea055730fffd1911244be66ddc809b, main 1c8c0efc8c41314402e6966da5bef6ea3d639d10, merged tree a5e67caec0be230350f597ab80fedd56d459807f. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), Release, BUILD_TESTING=ON.

git diff --check 1c8c0efc8c41314402e6966da5bef6ea3d639d10...fc1dfc03abea055730fffd1911244be66ddc809b
python3 tools/check_conventions.py --base 1c8c0efc8c41314402e6966da5bef6ea3d639d10
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_recorder|agc_driver_cached_image_multisample_guard)$"
# negative control: wrap the FlushPending call in storeEarlierStorageResults in try { ... } catch (const std::exception&) {}
ninja -C build -j32 -l32 agc_driver_recorder_tests
ctest --test-dir build --output-on-failure -R "^agc_multisample_guest_access$"
# restore the merged file, rebuild, rerun
git show a5e67caec0be230350f597ab80fedd56d459807f:core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
ninja -C build -j32 -l32 agc_driver_recorder_tests agc_driver_cached_image_multisample_guard_tests
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$"
git status --porcelain
Check Result
git diff --check Clean
check_conventions.py All conventions checks passed
Configure, build and libs (script) OK
Selected tests (script) 2182 run, 2059 passed, 116 expected skips, 0 new failures. The 7 failures (agc_driver_division, the denormal-mode tests, unwrap_self_…, vector_constant_factor_tininess) also fail on the baseline.
agc_multisample_guest_access Passed, 0.19 s
agc_driver_recorder Passed, 5.66 s
agc_driver_cached_image_multisample_guard Passed, 0.16 s
Validation layer (script, 784 tests, layer loaded in 783, none missing) New VUID- lines in one test only: agc_driver_image_gather_volume (VkSamplerCreateInfo-addressMode*), marked "test not run on main". This is the same result as in my last review. The test did not exist on the baseline 1e658521, which is older than main, and this PR touches no sampler or gather code, so I do not count it against the PR.
git status --porcelain after restoring Empty

Negative control

To check the new assertion on its own, I made storeEarlierStorageResults swallow its exception (try/catch around the FlushPending call). With that mutation, the first two cases still pass. The test then fails at the new check:

AGC graphics: the next draw of a multisampled target over storage results recorded after its last draw, by a writer that did not claim it, read the target's memory: 

So without the refusal, the draw goes through and the new assertion catches it. After I restored the merged file and rebuilt, both tests pass again and the worktree matches the merged tree.

Previous findings

  • Non-blocking: the "still refused" case can now stop at the target's next draw, not only at the idle flush. Resolved. The test now checks the refusal at the next draw and that the results stay pending (Recorder.cpp:11843-11845), and the description now says so. The mutation above confirms the check works.
  • Non-blocking: a per-draw FlushDepthPlanes + pretest cost for every multisampled target. No longer applies as an open request. The author acknowledged the cost and reports no change in the title's frame rate (author-reported). It was for awareness only, and I accept leaving it.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • No runs on non-lavapipe GPUs. The RADV RX 9070 XT runs on fc1dfc03ab are author-reported.
  • I did not run the title, so the PPSA13960 stop rate is author-reported.
  • I did not run agc_driver_image_gather_volume on current main to confirm its VUIDs come from there.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5761080371 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5761080371). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T23:44:18Z. **Review:** APPROVED --- # Re-checked — approved The only new commit is `fc1dfc03ab`, a test-only change. In `multisampleTargetOverPendingStorageTests`, the third case now draws the target before the idle store. It requires that draw to be refused with `a CPU read` and requires the results to still be pending afterwards. The test passes, and a mutation aimed at the new assertion makes it fail. ## What changed since my last review - delta.patch: commits `88091bc014`, `37417cec46` and `2fb6d79835` are identical to what I reviewed. One new commit, `fc1dfc03ab`, adds 14 lines to `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` and changes no production code: - a `refusedDraw` helper, which calls `MultisampleTargetView` under `GpuMutex` and captures the exception message; - in the third case, after the unclaimed clear and before `idleStore()`: `refused(refusedDraw())`, then `AnyPendingOverlaps(surface)` ([`Recorder.cpp:11843-11845`](https://github.com/boykopovar/AnyPS5/blob/fc1dfc03abea055730fffd1911244be66ddc809b/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L11843-L11845)). - The author replied on 2026-11-03 and updated the description. The "Still refused" paragraph now says the target's next draw, resolve or materialization throws `a CPU read`, and that the idle store still throws it too. This matches the code and the new test. - The author acknowledged the per-draw flush cost and did not change it, because the title's frame rate did not move. ## What I ran Head `fc1dfc03abea055730fffd1911244be66ddc809b`, `main` `1c8c0efc8c41314402e6966da5bef6ea3d639d10`, merged tree `a5e67caec0be230350f597ab80fedd56d459807f`. Debian 13 VM, Xeon Gold 6136, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), Release, `BUILD_TESTING=ON`. ```sh git diff --check 1c8c0efc8c41314402e6966da5bef6ea3d639d10...fc1dfc03abea055730fffd1911244be66ddc809b python3 tools/check_conventions.py --base 1c8c0efc8c41314402e6966da5bef6ea3d639d10 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_recorder|agc_driver_cached_image_multisample_guard)$" # negative control: wrap the FlushPending call in storeEarlierStorageResults in try { ... } catch (const std::exception&) {} ninja -C build -j32 -l32 agc_driver_recorder_tests ctest --test-dir build --output-on-failure -R "^agc_multisample_guest_access$" # restore the merged file, rebuild, rerun git show a5e67caec0be230350f597ab80fedd56d459807f:core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp > core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp ninja -C build -j32 -l32 agc_driver_recorder_tests agc_driver_cached_image_multisample_guard_tests ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_multisample_guest_access|agc_driver_cached_image_multisample_guard)$" git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | Clean | | `check_conventions.py` | All conventions checks passed | | Configure, build and `libs` (script) | OK | | Selected tests (script) | 2182 run, 2059 passed, 116 expected skips, **0 new failures**. The 7 failures (`agc_driver_division`, the denormal-mode tests, `unwrap_self_…`, `vector_constant_factor_tininess`) also fail on the baseline. | | `agc_multisample_guest_access` | Passed, 0.19 s | | `agc_driver_recorder` | Passed, 5.66 s | | `agc_driver_cached_image_multisample_guard` | Passed, 0.16 s | | Validation layer (script, 784 tests, layer loaded in 783, none missing) | New `VUID-` lines in one test only: `agc_driver_image_gather_volume` (`VkSamplerCreateInfo-addressMode*`), marked "test not run on main". This is the same result as in my last review. The test did not exist on the baseline `1e658521`, which is older than `main`, and this PR touches no sampler or gather code, so I do not count it against the PR. | | `git status --porcelain` after restoring | Empty | ## Negative control To check the new assertion on its own, I made `storeEarlierStorageResults` swallow its exception (try/catch around the `FlushPending` call). With that mutation, the first two cases still pass. The test then fails at the new check: ``` AGC graphics: the next draw of a multisampled target over storage results recorded after its last draw, by a writer that did not claim it, read the target's memory: ``` So without the refusal, the draw goes through and the new assertion catches it. After I restored the merged file and rebuilt, both tests pass again and the worktree matches the merged tree. ## Previous findings - **Non-blocking: the "still refused" case can now stop at the target's next draw, not only at the idle flush.** Resolved. The test now checks the refusal at the next draw and that the results stay pending ([`Recorder.cpp:11843-11845`](https://github.com/boykopovar/AnyPS5/blob/fc1dfc03abea055730fffd1911244be66ddc809b/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L11843-L11845)), and the description now says so. The mutation above confirms the check works. - **Non-blocking: a per-draw `FlushDepthPlanes` + pretest cost for every multisampled target.** No longer applies as an open request. The author acknowledged the cost and reports no change in the title's frame rate (author-reported). It was for awareness only, and I accept leaving it. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - No runs on non-lavapipe GPUs. The RADV RX 9070 XT runs on `fc1dfc03ab` are author-reported. - I did not run the title, so the PPSA13960 stop rate is author-reported. - I did not run `agc_driver_image_gather_volume` on current `main` to confirm its VUIDs come from there. <!-- anyps5-bots job=3717 head=fc1dfc03abea055730fffd1911244be66ddc809b -->
gabichuuuuu commented 2026-11-08 15:48:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T15:48:35Z.

Review: COMMENTED


Ran 7d548223bd merged on main 302864d48c on Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Khronos validation layer 1.4.368), ctest -R '^(agc_driver_recorder$|agc_driver_cached_image_multisample_guard)' -V:

main change, 2 runs each
NVIDIA 2/2 2/2 twice
Intel 1/2 1/2, then 2/2
  • The PR's Recorder.cpp changes call ClaimMultisampleTargetStore, which this PR adds, so there's no run of the tests without the change.
  • The Intel failures are agc_driver_recorder stopping at vkQueueSubmit recorder: Vulkan result -4 (device lost), which happens intermittently on main on this iGPU too. agc_driver_cached_image_multisample_guard passes in every run.
  • The layer was inserted in every test that opens a device. No log has was not found but was requested by env var VK_INSTANCE_LAYERS, and no log on either side has a VUID-. To be sure validation messages reach these logs, the same layer with best practices on printed 28 BestPractices- warnings into an agc_driver_recorder log on each GPU.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5818523061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5818523061). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T15:48:35Z. **Review:** COMMENTED --- Ran `7d548223bd` merged on `main` 302864d48c on Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (Khronos validation layer 1.4.368), `ctest -R '^(agc_driver_recorder$|agc_driver_cached_image_multisample_guard)' -V`: | | `main` | change, 2 runs each | |---|---|---| | NVIDIA | 2/2 | 2/2 twice | | Intel | 1/2 | 1/2, then 2/2 | - The PR's `Recorder.cpp` changes call `ClaimMultisampleTargetStore`, which this PR adds, so there's no run of the tests without the change. - The Intel failures are `agc_driver_recorder` stopping at `vkQueueSubmit recorder: Vulkan result -4` (device lost), which happens intermittently on `main` on this iGPU too. `agc_driver_cached_image_multisample_guard` passes in every run. - The layer was inserted in every test that opens a device. No log has `was not found but was requested by env var VK_INSTANCE_LAYERS`, and no log on either side has a `VUID-`. To be sure validation messages reach these logs, the same layer with best practices on printed 28 `BestPractices-` warnings into an `agc_driver_recorder` log on each GPU. AI-assisted: yes.
MarcZX10 commented 2026-11-14 05:51:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T05:51:23Z.

Review: COMMENTED


Reviewed — comments

Changes are required before merge: the tests should check the cached revalidation path for the newly supported unknown-use storage image case.

What I ran

Reviewed head 8c0aafff03cf3537f5b1e25cb9a4a402acb42e67 using the prepared diff and pinned repo_read.py reader. No commands or tests were run by me; test results below are author reported.

Results

Check Result Note
Diff and changed code passed All changed lines reviewed
Tests not run Author reports targeted tests passed
Validation and game runs not run Author reports results in the PR description

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceAgcDriver/tests/execution/CachedImageMultisampleGuard.cpp:517: the new unknown-use case (imageWritten empty) is tested with an initial build, but unlike the explicit {true} case it does not revalidate an already cached binding after the target is drawn. Since cached revalidation separately reconstructs the stored resource metadata, adding that scenario would cover the new branch and guard against a regression there.

Not verified

I did not run the test suite, validation layers, or the game. The author-reported checks are not independently verified. The full texts of ShaderResources.cpp and Recorder.cpp were excluded from the review folder; I read their relevant changed ranges and call context through repo_read.py. Other changed files were read from the review folder. Lockfiles, minified files, dist/, build/, and .svg files were excluded by the prepared review bundle; files.json was not provided as a readable artifact.

To get this to a good state

Nothing is required. Optionally add cached revalidation coverage for the unknown-use storage image case.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902075172 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5902075172). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T05:51:23Z. **Review:** COMMENTED --- # Reviewed — comments Changes are required before merge: the tests should check the cached revalidation path for the newly supported unknown-use storage image case. ## What I ran Reviewed head `8c0aafff03cf3537f5b1e25cb9a4a402acb42e67` using the prepared diff and pinned `repo_read.py` reader. No commands or tests were run by me; test results below are author reported. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code | passed | All changed lines reviewed | | Tests | not run | Author reports targeted tests passed | | Validation and game runs | not run | Author reports results in the PR description | ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceAgcDriver/tests/execution/CachedImageMultisampleGuard.cpp:517`: the new unknown-use case (`imageWritten` empty) is tested with an initial build, but unlike the explicit `{true}` case it does not revalidate an already cached binding after the target is drawn. Since cached revalidation separately reconstructs the stored resource metadata, adding that scenario would cover the new branch and guard against a regression there. ## Not verified I did not run the test suite, validation layers, or the game. The author-reported checks are not independently verified. The full texts of `ShaderResources.cpp` and `Recorder.cpp` were excluded from the review folder; I read their relevant changed ranges and call context through `repo_read.py`. Other changed files were read from the review folder. Lockfiles, minified files, `dist/`, `build/`, and `.svg` files were excluded by the prepared review bundle; `files.json` was not provided as a readable artifact. ## To get this to a good state Nothing is required. Optionally add cached revalidation coverage for the unknown-use storage image case.
MarcZX10 commented 2026-11-19 15:11:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T15:11:01Z.

Review: APPROVED


Reviewed — looks good

The reviewed change at ad007e4fe322004713979a9266f1fa8a1016ba36 has no verified blocking defects in the inspected code; the prepared description reports passing targeted checks on this head.

What I ran

No commands were run. I inspected the prepared diff and relevant code through repo_read.py; I did not independently run tests or build the project.

Results

Check Result Note
Diff and changed code review passed Inspected changed logic and test cases
Build and tests not run Results in the PR description are author reported

Findings

Blocking

None found in the code inspected.

Non-blocking

None.

Not verified

The prepared diff covers five changed files. I read the full included files MultisampleTarget.cpp, CachedImageMultisampleGuard.cpp, and docs/dev/debt/libSceAgcDriver.md, plus targeted ranges in ShaderResources.cpp and Recorder.cpp. The full text of ShaderResources.cpp and Recorder.cpp was excluded from the review folder as too large; other ranges and callers in those files were not inspected. I did not independently verify reported builds, tests, or game runs.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5977641212 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13963#pullrequestreview-5977641212). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T15:11:01Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change at `ad007e4fe322004713979a9266f1fa8a1016ba36` has no verified blocking defects in the inspected code; the prepared description reports passing targeted checks on this head. ## What I ran No commands were run. I inspected the prepared diff and relevant code through `repo_read.py`; I did not independently run tests or build the project. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | Inspected changed logic and test cases | | Build and tests | not run | Results in the PR description are author reported | ## Findings ### Blocking None found in the code inspected. ### Non-blocking None. ## Not verified The prepared diff covers five changed files. I read the full included files `MultisampleTarget.cpp`, `CachedImageMultisampleGuard.cpp`, and `docs/dev/debt/libSceAgcDriver.md`, plus targeted ranges in `ShaderResources.cpp` and `Recorder.cpp`. The full text of `ShaderResources.cpp` and `Recorder.cpp` was excluded from the review folder as too large; other ranges and callers in those files were not inspected. I did not independently verify reported builds, tests, or game runs. ## To get this to a good state Nothing is required.
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!13963
No description provided.