feat(agc): publish native color for read-only shader buffers #7002

Open
Amoenus wants to merge 94 commits from upstream-pr/7002 into main
Amoenus commented 2026-10-17 03:41:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T03:41:09Z.


What

Publish supported native MSAA color before read-only shader-buffer uploads and prepared/cached/moved consumers. Writable aliases preflight first; moved ranges remain available through recording. Preserve synchronizeGuestBuffers(moved), EpochProofs() && !perUseTextures and main's patched-data template reuse. #6989/#6995 are merged; #10497 remains a dependency.

Review correction: require valid && moved.has_value() before a draw-cache hit. An engaged moved-buffer vector no longer bypasses failed resource revalidation. Publication still happens before the proof with the moved ranges; existing invalidation/refusal paths remain. Still draft for the separate AMD intermittence and foreign-depth/concurrent-consumer qualification.

Tested

4 December: head 59a680b610, frozen main 2fbf8b4391. Resolved the two address-draw fixture/registration conflicts by retaining our failed-revalidation case and main's new shadow-publish, shadow-cpu-overwrite and shadow-fresh checks (18 DefaultCases). Main's pending-old-input dispatch protections and multisample draw recipes are retained. The corrected draw-cache gate and regression body are unchanged from 3 December.

Full native libraries/relinker and selected real fixtures build on both pins; ordinary/profiling Graphics host suites pass. 68/68 focused CTests pass (64 clean; four retain main's depth-plane warnings). Main passes 56/56; 56 common processes have identical error/warning IDs. The shadow, dispatch-move/depth and failed-revalidation checks pass on both physical GPUs. Matrix nonzero exits: none. The separately repeated AMD moved-template assertion follows successful current-word/output-boundary checks; by itself it does not establish stale output, and its cause is unisolated. Required Vulkan/cache disabled, actual devices and Khronos 1.4.363 insertion verified, no new VUIDs/skips; all selected GPU processes below 30 seconds. Exact commands, source/executable hashes and complete logs.

Predetermined epoch repeats: NVIDIA 6/6, AMD 4/6; all attempts retained. Still draft: the AMD cause and foreign-depth/concurrent-consumer qualification remain unresolved; #10497 remains a dependency. No assertion relaxation, retries-until-green or new fallback.

The 3 December rendering counterexample and correction retain their actual control 6573319e1d / fix 2bbb29ed2f pins. The old condition rendered stale 150 instead of 75 on both GPUs; the correction passed. Those negative controls were not rerun or relabeled as this merge. The added regression is absent on unchanged main.

Windows Build, portability, report and eligibility passed on previous head2bbb; skipped jobs are not passes and that CI is not CI for this new merge. The latest review found no blocker in its inspected ranges, but was partial, COMMENTED and ran no tests. The older formal change request remains for reviewer action.

Windows 11 Enterprise 26300, RTX 5080 621.01/32.0.16.2101, AMD Radeon Graphics 32.0.21045.16010, WinLibs GCC15.2 UCRTr7 Release. Conventions/template/whitespace pass. No fresh Sonic/FPS/Linux/full-CTest/analyzer/cache-executable or console-equivalence claim; quarantined executables remain unbuilt/unrun.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: #10497
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 5080 (10de:2c02), 621.01 / Windows 32.0.16.2101; AMD Radeon(TM) Graphics (1002:13c0), Windows 32.0.21045.16010; Windows 11 Enterprise 10.0.26300; Khronos validation 1.4.363
  • AI-assisted: yes (Codex); author responsible
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4896942379 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-17T03:41:09Z. --- ### What Publish supported native MSAA color before read-only shader-buffer uploads and prepared/cached/moved consumers. Writable aliases preflight first; moved ranges remain available through recording. Preserve synchronizeGuestBuffers(moved), EpochProofs() && !perUseTextures and main's patched-data template reuse. #6989/#6995 are merged; #10497 remains a dependency. **Review correction:** require `valid && moved.has_value()` before a draw-cache hit. An engaged moved-buffer vector no longer bypasses failed resource revalidation. Publication still happens before the proof with the moved ranges; existing invalidation/refusal paths remain. **Still draft** for the separate AMD intermittence and foreign-depth/concurrent-consumer qualification. ### Tested **4 December:** head **59a680b61091aa11ab50e41b6c7a34988f42791e**, frozen main **2fbf8b43913766c6f3300327ec9c6b118238b9ca**. Resolved the two address-draw fixture/registration conflicts by retaining our failed-revalidation case and main's new shadow-publish, shadow-cpu-overwrite and shadow-fresh checks (18 DefaultCases). Main's pending-old-input dispatch protections and multisample draw recipes are retained. The corrected draw-cache gate and regression body are unchanged from 3 December. Full native libraries/relinker and selected real fixtures build on both pins; ordinary/profiling Graphics host suites pass. **68/68 focused CTests pass** (64 clean; four retain main's depth-plane warnings). Main passes **56/56**; 56 common processes have identical error/warning IDs. The shadow, dispatch-move/depth and failed-revalidation checks pass on both physical GPUs. Matrix nonzero exits: **none**. The separately repeated AMD moved-template assertion follows successful current-word/output-boundary checks; by itself it does not establish stale output, and its cause is unisolated. Required Vulkan/cache disabled, actual devices and Khronos 1.4.363 insertion verified, no new VUIDs/skips; all selected GPU processes below 30 seconds. [Exact commands, source/executable hashes and complete logs](https://gist.github.com/Amoenus/9ff27af965e34c2fc12f873732fbb7a6). Predetermined epoch repeats: **NVIDIA 6/6, AMD 4/6**; all attempts retained. **Still draft:** the AMD cause and foreign-depth/concurrent-consumer qualification remain unresolved; #10497 remains a dependency. No assertion relaxation, retries-until-green or new fallback. The [3 December rendering counterexample and correction](https://gist.github.com/Amoenus/29d31632b67e784b4c20a47f423a2d38) retain their actual control **6573319e1df9f86f7318039b2907865814b3b65e** / fix **2bbb29ed2f5bef0eceb997be20f8472a0ec4773d** pins. The old condition rendered stale 150 instead of 75 on both GPUs; the correction passed. Those negative controls were not rerun or relabeled as this merge. The added regression is absent on unchanged main. Windows Build, portability, report and eligibility passed on previous head2bbb; skipped jobs are not passes and that CI is not CI for this new merge. The latest review found no blocker in its inspected ranges, but was partial, COMMENTED and ran no tests. The older formal change request remains for reviewer action. Windows 11 Enterprise 26300, RTX 5080 621.01/32.0.16.2101, AMD Radeon Graphics 32.0.21045.16010, WinLibs GCC15.2 UCRTr7 Release. Conventions/template/whitespace pass. No fresh Sonic/FPS/Linux/full-CTest/analyzer/cache-executable or console-equivalence claim; quarantined executables remain unbuilt/unrun. ### 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) and the licence notice of code adapted from upstream (see AGENTS.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: <!-- #PR, or none --> #10497 - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> NVIDIA GeForce RTX 5080 (10de:2c02), 621.01 / Windows 32.0.16.2101; AMD Radeon(TM) Graphics (1002:13c0), Windows 32.0.21045.16010; Windows 11 Enterprise 10.0.26300; Khronos validation 1.4.363 - [x] AI-assisted: <!-- yes / no --> yes (Codex); author responsible
akkadbakkad89 commented 2026-10-17 08:19:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T08:19:31Z.


Runtime datapoint on NVIDIA hardware. RTX 3070, Ampere, driver 617.42, Windows 11 26200, WinLibs GCC 15.2.0, Release, ANYPS5_NO_SHADER_CACHE=1. Head 3d457b9a8, all binaries rebuilt on this head, ctest serial:

Test Result
agc_driver_native_color_buffer_publication pass
agc_driver_native_color_buffer_refusal pass
agc_driver_native_color_draw_recipe pass
agc_driver_native_color_cpu_publication pass
agc_driver_native_color_publication pass
agc_driver_native_color_snapshot pass
agc_driver_native_color_readback pass
agc_driver_native_color_initial pass
agc_driver_msaa_layout pass
agc_driver_multisample_readback_* (uint8/16/64/128, depth, upload) pass x6
agc_driver_sample_multisample_target pass
agc_driver_sample_mask_multisample pass

18/18 pass on Ampere — read-only shader-buffer publication and the buffer-refusal boundary hold.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231662537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#issuecomment-6231662537). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-17T08:19:31Z. --- Runtime datapoint on NVIDIA hardware. RTX 3070, Ampere, driver 617.42, Windows 11 26200, WinLibs GCC 15.2.0, Release, ANYPS5_NO_SHADER_CACHE=1. Head 3d457b9a8, all binaries rebuilt on this head, ctest serial: | Test | Result | |---|---| | agc_driver_native_color_buffer_publication | pass | | agc_driver_native_color_buffer_refusal | pass | | agc_driver_native_color_draw_recipe | pass | | agc_driver_native_color_cpu_publication | pass | | agc_driver_native_color_publication | pass | | agc_driver_native_color_snapshot | pass | | agc_driver_native_color_readback | pass | | agc_driver_native_color_initial | pass | | agc_driver_msaa_layout | pass | | agc_driver_multisample_readback_* (uint8/16/64/128, depth, upload) | pass x6 | | agc_driver_sample_multisample_target | pass | | agc_driver_sample_mask_multisample | pass | 18/18 pass on Ampere — read-only shader-buffer publication and the buffer-refusal boundary hold.
hugodearaujo commented 2026-10-18 16:18:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-18T16:18:14Z.


Data point for the publication series: Assassin's Creed Mirage (PPSA13960) accesses 4x MSAA color memory every frame through single-sample views at twice the extent (960x540x4 ↔ 1920x1080x1 in SW_64KB_S; an R11G11B10F storage write from compute shader 0x10b4f58600 and an R16F texture read). With this PR's head merged on main it still stops at a storage image access ... whose samples are only on the host: guest access to it is not implemented. Are storage image views of a native MSAA target's memory in this series' scope?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6252190043 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#issuecomment-6252190043). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-18T16:18:14Z. --- Data point for the publication series: Assassin's Creed Mirage (PPSA13960) accesses 4x MSAA color memory every frame through single-sample views at twice the extent (960x540x4 ↔ 1920x1080x1 in SW_64KB_S; an R11G11B10F storage write from compute shader 0x10b4f58600 and an R16F texture read). With this PR's head merged on `main` it still stops at `a storage image access ... whose samples are only on the host: guest access to it is not implemented`. Are storage image views of a native MSAA target's memory in this series' scope?
Amoenus commented 2026-10-18 16:51:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-18T16:51:05Z.


@hugodearaujo Thanks for the concrete case. The single-sample image aliases you describe are outside #7002's current scope. Its read-only handoff is for logical buffer descriptors, not every read-only shader resource. At published head d9b584e423, synchronizeGuestBuffers publishes read-only buffers and refuses writable ones first. The separate cachedStorageTexture path still calls RequireNoMultisampleTarget for the storage-image access. Your reported stop is therefore consistent with that unchanged refusal.

This is narrower than saying all native-MSAA storage views are unsupported: merged #5881 already handles a compatible multisampled storage view with matching format, extent and sample count. The 960x540x4 -> 1920x1080x1 image alias, and the R11G11B10F/R16F reinterpretations, do not use that matching-view path. This series' guest publication also currently requires uncompressed single-layer R_X storage; its ColorSnapshot check does not establish SW_64KB_S sample layout.

I would keep the guard until the sample/byte mapping and write-to-next-consumer coherency are implemented and tested; dropping it or treating this as an ordinary resolve would not demonstrate correctness. There is also a distinction to settle before opening a duplicate tracker: #5933 covers memory reused after an MSAA target is dead, while a still-live alias needs an actual coherency path. Does the original4x target get drawn to/read again after the1x storage write? If available, please add the exact tested main/dependency SHAs. The full stop already recorded in #7533 plus your per-frame observation provide useful context.

I checked public source at this published head and main13e48ed290; I have not run Mirage and am not claiming its workaround, write coverage or title unblock. I have also clarified this PR's description. AI-assisted: yes (Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6252526732 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#issuecomment-6252526732). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-18T16:51:05Z. --- <!-- codex-pr7002-storage-alias-scope-v1 --> @hugodearaujo Thanks for the concrete case. **The single-sample image aliases you describe are outside #7002's current scope.** Its read-only handoff is for logical **buffer descriptors**, not every read-only shader resource. At published head `d9b584e423`, [`synchronizeGuestBuffers`](https://github.com/boykopovar/AnyPS5/blob/d9b584e423b8c26dbc6a48042486c241e2d96e77/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L5075) publishes read-only buffers and refuses writable ones first. The separate [`cachedStorageTexture` path](https://github.com/boykopovar/AnyPS5/blob/d9b584e423b8c26dbc6a48042486c241e2d96e77/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L991) still calls `RequireNoMultisampleTarget` for the storage-image access. Your reported stop is therefore consistent with that unchanged refusal. This is narrower than saying all native-MSAA storage views are unsupported: merged #5881 already handles a compatible multisampled storage view with matching format, extent and sample count. The `960x540x4 -> 1920x1080x1` image alias, and the R11G11B10F/R16F reinterpretations, do not use that matching-view path. This series' guest publication also currently requires uncompressed single-layer R_X storage; its [`ColorSnapshot` check](https://github.com/boykopovar/AnyPS5/blob/d9b584e423b8c26dbc6a48042486c241e2d96e77/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L367) does not establish SW_64KB_S sample layout. I would keep the guard until the sample/byte mapping and write-to-next-consumer coherency are implemented and tested; dropping it or treating this as an ordinary resolve would not demonstrate correctness. There is also a distinction to settle before opening a duplicate tracker: #5933 covers memory reused after an MSAA target is dead, while a still-live alias needs an actual coherency path. Does the original4x target get drawn to/read again after the1x storage write? If available, please add the exact tested main/dependency SHAs. The full stop already recorded in #7533 plus your per-frame observation provide useful context. I checked public source at this published head and main13e48ed290; I have not run Mirage and am not claiming its workaround, write coverage or title unblock. I have also clarified this PR's description. AI-assisted: yes (Codex).
hugodearaujo commented 2026-10-18 19:24:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-18T19:24:20Z.


@Amoenus Exact SHAs of that test: main 6efb7261b, with #7532 at 51e5eae15, #7533 at bfcb8fcdf, #6343 at ce5b0c395 and this PR at d9b584e423.

Yes, both 4x targets are drawn to again after the 1x accesses. In a local run with the guard retired instead of throwing (the same idea as #6808), with a print where a host multisampled target is created and where a 1x access retires a guard, the log has the same four events 45 times in a row:

  1. a host 4x target is created for 0x10e0720000 (960x540, R11G11B10F);
  2. a host 4x target is created for 0x10dc450000 (960x540, R16F);
  3. compute shader 0x10b4f58600 writes 0x10e0720000+0x870000 through the 1x storage view (1920x1080, R11G11B10F), which retires the first guard;
  4. a texture read of 0x10dc1d0000+0x480000 (1920x1080, R16F, overlapping the first 0x200000 bytes of the second target) retires the second guard.

The next cycle then creates both 4x targets again for the same memory, so this is a live alias reused every cycle, not memory reused after the target is dead. My prints covered only those two points, so I can't say whether a cycle starts with a clear, or whether the 4x targets are also read as multisampled resources between the steps.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254120067 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#issuecomment-6254120067). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-18T19:24:20Z. --- @Amoenus Exact SHAs of that test: `main` 6efb7261b, with #7532 at 51e5eae15, #7533 at bfcb8fcdf, #6343 at ce5b0c395 and this PR at d9b584e423. Yes, both 4x targets are drawn to again after the 1x accesses. In a local run with the guard retired instead of throwing (the same idea as #6808), with a print where a host multisampled target is created and where a 1x access retires a guard, the log has the same four events 45 times in a row: 1. a host 4x target is created for 0x10e0720000 (960x540, R11G11B10F); 2. a host 4x target is created for 0x10dc450000 (960x540, R16F); 3. compute shader 0x10b4f58600 writes 0x10e0720000+0x870000 through the 1x storage view (1920x1080, R11G11B10F), which retires the first guard; 4. a texture read of 0x10dc1d0000+0x480000 (1920x1080, R16F, overlapping the first 0x200000 bytes of the second target) retires the second guard. The next cycle then creates both 4x targets again for the same memory, so this is a live alias reused every cycle, not memory reused after the target is dead. My prints covered only those two points, so I can't say whether a cycle starts with a clear, or whether the 4x targets are also read as multisampled resources between the steps.
Amoenus commented 2026-10-18 22:58:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-18T22:58:08Z.


@hugodearaujo Recorded your exact pins and repeated live-alias sequence in the PR report. Drawing to both 4x targets again distinguishes this from dead-allocation reuse.

The important scope boundary is that #7002 handles read-only shader buffers; it does not establish coherence from the 1x storage write back into subsequent 4x use. The guard-retirement experiment therefore does not by itself validate that handoff. Clears before reuse and any intervening multisample reads remain unknown, as you noted. This belongs in the broader #6480 alias work; I have kept it separate from this PR's supported paths and validation claims.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256221650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#issuecomment-6256221650). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-18T22:58:08Z. --- @hugodearaujo Recorded your exact pins and repeated live-alias sequence in the PR report. Drawing to both 4x targets again distinguishes this from dead-allocation reuse. The important scope boundary is that #7002 handles read-only shader buffers; it does not establish coherence from the 1x storage write back into subsequent 4x use. The guard-retirement experiment therefore does not by itself validate that handoff. Clears before reuse and any intervening multisample reads remain unknown, as you noted. This belongs in the broader #6480 alias work; I have kept it separate from this PR's supported paths and validation claims.
oneandonlydean commented 2026-10-21 10:14:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T10:14:44Z.


@Amoenus this PR is stacked on #6973 and inherits its conflicts with main in Texture.hpp and MultisampleTarget.cpp; see the note on #6973. Please rebase it after #6973 is reworked on current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313516114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#issuecomment-6313516114). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T10:14:44Z. --- @Amoenus this PR is stacked on #6973 and inherits its conflicts with `main` in `Texture.hpp` and `MultisampleTarget.cpp`; see the note on #6973. Please rebase it after #6973 is reworked on current `main`.
CnRJay commented 2026-11-01 19:59:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:59:36Z.

Review: COMMENTED


Correction (2026-11-01): the title-ID/log demand below is not a CONTRIBUTING requirement; Unblocks: none is allowed. The technical points below are unaffected.

1. Work before command-buffer binding. "Preparation, final upload, compute reuse validation and moved draw snapshots request the sample-preserving handoff before command-buffer binding." That is a GPU readback and publication (GPU mutex, CPU copy) on the draw/dispatch recording path, for any read-only buffer binding that overlaps a native MSAA owner. How often does it run per frame in a real scene, and what is the cost when no owner overlaps (one range check per binding)? The description makes no performance claim, but the placement is in the per-draw path; please give a counter plus tools/trace_digest.py summaries of main and this head on a scene that has native MSAA colour.

2. No title reaches this on main. "Unblocks: none"; the PPSA99902 ledger and the Mirage comment say no unblock is claimed. Please name a title and a log line showing a read-only buffer binding overlapping a native colour target.

3. Cumulative stack. The head carries #6973, #6987, #6989 and #6995 (about 110 commits, most of them refresh merges) against main, so the 1837-line diff is not reviewable as this change. Retarget onto #6995's branch or rebase once it lands.

4. Order of checks. The body explains that read-only aliases processed first could retire a native owner and let a later writable overlap through, and fixes it by checking writable bindings first. That is a correctness hazard found by a test; is there a test for the same hazard through the compute reuse validation and moved draw snapshot paths (they are separate callers), or only through preparation?

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729955824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-5729955824). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:59:36Z. **Review:** COMMENTED --- **Correction (2026-11-01):** the title-ID/log demand below is not a CONTRIBUTING requirement; `Unblocks: none` is allowed. The technical points below are unaffected. **1. Work before command-buffer binding.** "Preparation, final upload, compute reuse validation and moved draw snapshots request the sample-preserving handoff before command-buffer binding." That is a GPU readback and publication (GPU mutex, CPU copy) on the draw/dispatch recording path, for any read-only buffer binding that overlaps a native MSAA owner. How often does it run per frame in a real scene, and what is the cost when no owner overlaps (one range check per binding)? The description makes no performance claim, but the placement is in the per-draw path; please give a counter plus `tools/trace_digest.py` summaries of `main` and this head on a scene that has native MSAA colour. **2. No title reaches this on `main`.** "Unblocks: none"; the PPSA99902 ledger and the Mirage comment say no unblock is claimed. Please name a title and a log line showing a read-only buffer binding overlapping a native colour target. **3. Cumulative stack.** The head carries #6973, #6987, #6989 and #6995 (about 110 commits, most of them refresh merges) against `main`, so the 1837-line diff is not reviewable as this change. Retarget onto #6995's branch or rebase once it lands. **4. Order of checks.** The body explains that read-only aliases processed first could retire a native owner and let a later writable overlap through, and fixes it by checking writable bindings first. That is a correctness hazard found by a test; is there a test for the same hazard through the compute reuse validation and moved draw snapshot paths (they are separate callers), or only through preparation?
MarcZX10 commented 2026-11-16 20:30:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T20:30:22Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the one optional point below may help clarify the cache fallback behavior.

What I ran

Reviewed head 5e9ad0ea99645d0201a1e144ffa92ba26f9a291c against the prepared diff and targeted source reads through repo_read.py. No tests or builds were run; the GPU and CPU results in the description are author-reported.

Results

Check Result Note
Changed-code review passed Core publication and buffer paths inspected
Build and tests not run Author reports GPU and CPU fixture results
Negative control not run No control was run during this review

Findings

Blocking

None.

Non-blocking

  • Draw.cpp:2255 treats inability to prove a moved-buffer candidate as moveRefused, then takes the miss path while retaining the cached entry. Consider documenting or asserting the intended fallback here; the behavior is not immediately evident from this branch.

Not verified

The two changed files VulkanDevice.cpp and ShaderResources.cpp were not present in the review folder; their changed hunks were read through the pinned reader. Other full file text was not read beyond changed-line hunks and targeted callers. No local tests, build, physical-console behavior, Linux joint-stack qualification, or large-title costs were verified. Author-reported GPU and CPU results were not independently run.

To get this to a good state

Nothing is required. The fallback branch comment is optional.

Files reviewed: all 10 changed files listed in the manifest; files read directly from the review folder or pinned reader: VulkanDevice.cpp, MultisampleTarget.hpp, ShaderResources.hpp, Draw.cpp, MultisampleTarget.cpp, ShaderResources.cpp, agc_driver_sample_multisample_target_tests.cmake, MultisampleSrgbTwin.cpp, SampleMultisampleTarget.cpp, and native-color-publication.md. Excluded files: none listed by rule in files.json; the two large source files were reader-accessible and their changed hunks were inspected.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5927074240 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-5927074240). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T20:30:22Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the one optional point below may help clarify the cache fallback behavior. ## What I ran Reviewed head `5e9ad0ea99645d0201a1e144ffa92ba26f9a291c` against the prepared diff and targeted source reads through `repo_read.py`. No tests or builds were run; the GPU and CPU results in the description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Changed-code review | passed | Core publication and buffer paths inspected | | Build and tests | not run | Author reports GPU and CPU fixture results | | Negative control | not run | No control was run during this review | ## Findings ### Blocking None. ### Non-blocking - `Draw.cpp:2255` treats inability to prove a moved-buffer candidate as `moveRefused`, then takes the miss path while retaining the cached entry. Consider documenting or asserting the intended fallback here; the behavior is not immediately evident from this branch. ## Not verified The two changed files `VulkanDevice.cpp` and `ShaderResources.cpp` were not present in the review folder; their changed hunks were read through the pinned reader. Other full file text was not read beyond changed-line hunks and targeted callers. No local tests, build, physical-console behavior, Linux joint-stack qualification, or large-title costs were verified. Author-reported GPU and CPU results were not independently run. ## To get this to a good state Nothing is required. The fallback branch comment is optional. Files reviewed: all 10 changed files listed in the manifest; files read directly from the review folder or pinned reader: `VulkanDevice.cpp`, `MultisampleTarget.hpp`, `ShaderResources.hpp`, `Draw.cpp`, `MultisampleTarget.cpp`, `ShaderResources.cpp`, `agc_driver_sample_multisample_target_tests.cmake`, `MultisampleSrgbTwin.cpp`, `SampleMultisampleTarget.cpp`, and `native-color-publication.md`. Excluded files: none listed by rule in `files.json`; the two large source files were reader-accessible and their changed hunks were inspected.
MarcZX10 commented 2026-11-20 05:59:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:59:55Z.

Review: COMMENTED


Reviewed — comments

The publication and moved-buffer paths have material integration and concurrency uncertainty, so this review does not establish that the change is ready to merge.

What I ran

The prepared bundle identifies head 86d06f9dccfea73c0605c1f744b9245dfc6684ee. I read the description, manifest, and selected diff hunks; I did not run commands or tests.

Results

Check Result Note
Source review not run Several changed files were not read in full
Tests not run No tests run in this review
Negative control not run Not exercised

Findings

Blocking

None verified.

Non-blocking

  • The description says concurrent stage-A lock ordering has not been qualified. The changed synchronization and publication paths add GPU-mutex, target-list, and guarded-range locking, but their callers and interactions were not fully reviewed. Please qualify the lock ordering and exercise the concurrent read/publication paths before relying on this behavior.

Sources

  • The reviewed diff shows CPU read synchronization in MultisampleTarget.cpp:291-293, publication locking in MultisampleTarget.cpp:318-390, and guest-buffer synchronization in ShaderResources.cpp:448-462.

Not verified

I read description.md, commits.md, manifest.json, and selected ranges of diff.patch. Changed files listed in the manifest but not read include VulkanDevice.cpp, ShaderResources.cpp, and tests/Graphics.cpp; I also did not read all included changed files or all diff hunks. The manifest marks the full text of those three files as excluded for size. I did not inspect test output, run tests, or verify the author-reported results.

To get this to a good state

Nothing is required. Optional: qualify the lock ordering and concurrent publication/read behavior, then provide the resulting test evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988213841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-5988213841). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T05:59:55Z. **Review:** COMMENTED --- # Reviewed — comments The publication and moved-buffer paths have material integration and concurrency uncertainty, so this review does not establish that the change is ready to merge. ## What I ran The prepared bundle identifies head `86d06f9dccfea73c0605c1f744b9245dfc6684ee`. I read the description, manifest, and selected diff hunks; I did not run commands or tests. ## Results | Check | Result | Note | |---|---|---| | Source review | not run | Several changed files were not read in full | | Tests | not run | No tests run in this review | | Negative control | not run | Not exercised | ## Findings ### Blocking None verified. ### Non-blocking - The description says concurrent stage-A lock ordering has not been qualified. The changed synchronization and publication paths add GPU-mutex, target-list, and guarded-range locking, but their callers and interactions were not fully reviewed. Please qualify the lock ordering and exercise the concurrent read/publication paths before relying on this behavior. ## Sources - The reviewed diff shows CPU read synchronization in `MultisampleTarget.cpp:291-293`, publication locking in `MultisampleTarget.cpp:318-390`, and guest-buffer synchronization in `ShaderResources.cpp:448-462`. ## Not verified I read `description.md`, `commits.md`, `manifest.json`, and selected ranges of `diff.patch`. Changed files listed in the manifest but not read include `VulkanDevice.cpp`, `ShaderResources.cpp`, and `tests/Graphics.cpp`; I also did not read all included changed files or all diff hunks. The manifest marks the full text of those three files as excluded for size. I did not inspect test output, run tests, or verify the author-reported results. ## To get this to a good state Nothing is required. Optional: qualify the lock ordering and concurrent publication/read behavior, then provide the resulting test evidence.
MarcZX10 commented 2026-11-21 06:30:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:30:11Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this review, but the author’s reported concurrent stage-A/read/publication qualification remains unverified.

What I ran

Reviewed head 636a5fb907322dfc82a8f09eec760614d08ed4f2 using the prepared diff and the pinned repo_read.py reader. No build or test commands were run; the test results below are reported by the author or CI.

Results

Check Result Note
Source review passed Changed synchronization paths inspected
Build and tests not run Author and CI results are not independently verified
Concurrent qualification not run The description says this remains outstanding

Findings

Blocking

None.

Non-blocking

  • The description explicitly says this head has serial validation only and lacks concurrent stage-A/read/publication qualification and a current foreign-depth composition result. Please add that qualification before treating those paths as fully validated.

Not verified

  • Read the full added-line ranges for DisplayBuffer.cpp, MultisampleTarget.hpp, ShaderResources.hpp, State.hpp, Draw.cpp, MultisampleTarget.cpp, State.cpp, agc_driver_sample_multisample_target_tests.cmake, MultisampleSrgbTwin.cpp, SampleMultisampleTarget.cpp, and native-color-publication.md from the prepared diff and/or pinned reader. Read the changed regions of VulkanDevice.cpp, ShaderResources.cpp, and Graphics.cpp through the pinned reader; these three files were excluded from files/ as too large. Read the PR description, commit list, manifest, diff, and review-folder README. No changed file listed in the manifest was left unread.
  • Builds, tests, CI jobs, Linux execution, hardware behavior, and the outstanding concurrency and foreign-depth qualifications were not independently run or verified. The author reports Windows GPU and host test results; CI reports Windows success and hosted Linux skipped.

To get this to a good state

Nothing is required. The concurrency and foreign-depth qualifications are optional follow-up points.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003517555 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6003517555). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T06:30:11Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this review, but the author’s reported concurrent stage-A/read/publication qualification remains unverified. ## What I ran Reviewed head `636a5fb907322dfc82a8f09eec760614d08ed4f2` using the prepared diff and the pinned `repo_read.py` reader. No build or test commands were run; the test results below are reported by the author or CI. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed synchronization paths inspected | | Build and tests | not run | Author and CI results are not independently verified | | Concurrent qualification | not run | The description says this remains outstanding | ## Findings ### Blocking None. ### Non-blocking - The description explicitly says this head has serial validation only and lacks concurrent stage-A/read/publication qualification and a current foreign-depth composition result. Please add that qualification before treating those paths as fully validated. ## Not verified - Read the full added-line ranges for `DisplayBuffer.cpp`, `MultisampleTarget.hpp`, `ShaderResources.hpp`, `State.hpp`, `Draw.cpp`, `MultisampleTarget.cpp`, `State.cpp`, `agc_driver_sample_multisample_target_tests.cmake`, `MultisampleSrgbTwin.cpp`, `SampleMultisampleTarget.cpp`, and `native-color-publication.md` from the prepared diff and/or pinned reader. Read the changed regions of `VulkanDevice.cpp`, `ShaderResources.cpp`, and `Graphics.cpp` through the pinned reader; these three files were excluded from `files/` as too large. Read the PR description, commit list, manifest, diff, and review-folder README. No changed file listed in the manifest was left unread. - Builds, tests, CI jobs, Linux execution, hardware behavior, and the outstanding concurrency and foreign-depth qualifications were not independently run or verified. The author reports Windows GPU and host test results; CI reports Windows success and hosted Linux skipped. ## To get this to a good state Nothing is required. The concurrency and foreign-depth qualifications are optional follow-up points.
MarcZX10 commented 2026-11-25 06:24:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T06:24:22Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed head is 133f48c9b794c863d88b3a9ceb8cc92ed46528f6; I found no verified blocking defect, but an intermittent AMD moved-template failure remains unresolved, so a formal approval is not justified.

What I ran

Read the prepared diff and targeted source at the pinned head. No commands or tests were run during this review; test results below are author-reported.

Results

Check Result Note
Changed-code inspection passed Targeted publication and consumer paths inspected
Runtime tests not run PR description reports GPU and host runs
AMD moved-template case not run Intermittent failure is unresolved

Findings

Blocking

None verified.

Non-blocking

  • The PR description reports intermittent AMD failures where the epoch case rebuilds instead of taking the moved-template path; the cause is still unisolated. The current-head pass is a single focused rerun and does not establish resolution. Please keep this limitation visible and provide repeatable evidence before relying on that path.

Not verified

  • Not read: Execution/src/VulkanDevice.cpp full text was excluded for size; only the changed dispatch region was read. Graphics/src/ShaderResources.cpp full text was excluded for size; only changed synchronization/revalidation regions were read. tests/Graphics.cpp full text was excluded for size; the changed test hunk was read.
  • Other changed files were present in the review folder but not read: Graphics/include/MultisampleTarget.hpp, Graphics/include/ShaderResources.hpp, Graphics/include/State.hpp, Graphics/src/State.cpp, tests/cmake/agc_driver_sample_multisample_target_tests.cmake, tests/execution/MultisampleSrgbTwin.cpp, tests/execution/SampleMultisampleTarget.cpp, and docs/dev/debt/changes/native-color-publication.md.
  • DisplayBuffer.cpp, Graphics/src/Draw.cpp, and targeted ranges in Graphics/src/MultisampleTarget.cpp were read. Test execution, Linux, console equivalence, game behavior, concurrent stage-A/read/publication, current foreign-depth qualification, and the intermittent AMD case were not independently verified.

To get this to a good state

Nothing is required. Optional: isolate the intermittent AMD moved-template rebuild and report repeat results for the current head before relying on the epoch path.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6052797901 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6052797901). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T06:24:22Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed head is `133f48c9b794c863d88b3a9ceb8cc92ed46528f6`; I found no verified blocking defect, but an intermittent AMD moved-template failure remains unresolved, so a formal approval is not justified. ## What I ran Read the prepared diff and targeted source at the pinned head. No commands or tests were run during this review; test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Changed-code inspection | passed | Targeted publication and consumer paths inspected | | Runtime tests | not run | PR description reports GPU and host runs | | AMD moved-template case | not run | Intermittent failure is unresolved | ## Findings ### Blocking None verified. ### Non-blocking - The PR description reports intermittent AMD failures where the epoch case rebuilds instead of taking the moved-template path; the cause is still unisolated. The current-head pass is a single focused rerun and does not establish resolution. Please keep this limitation visible and provide repeatable evidence before relying on that path. ## Not verified - Not read: `Execution/src/VulkanDevice.cpp` full text was excluded for size; only the changed dispatch region was read. `Graphics/src/ShaderResources.cpp` full text was excluded for size; only changed synchronization/revalidation regions were read. `tests/Graphics.cpp` full text was excluded for size; the changed test hunk was read. - Other changed files were present in the review folder but not read: `Graphics/include/MultisampleTarget.hpp`, `Graphics/include/ShaderResources.hpp`, `Graphics/include/State.hpp`, `Graphics/src/State.cpp`, `tests/cmake/agc_driver_sample_multisample_target_tests.cmake`, `tests/execution/MultisampleSrgbTwin.cpp`, `tests/execution/SampleMultisampleTarget.cpp`, and `docs/dev/debt/changes/native-color-publication.md`. - `DisplayBuffer.cpp`, `Graphics/src/Draw.cpp`, and targeted ranges in `Graphics/src/MultisampleTarget.cpp` were read. Test execution, Linux, console equivalence, game behavior, concurrent stage-A/read/publication, current foreign-depth qualification, and the intermittent AMD case were not independently verified. ## To get this to a good state Nothing is required. Optional: isolate the intermittent AMD moved-template rebuild and report repeat results for the current head before relying on the epoch path.
MarcZX10 commented 2026-11-27 05:56:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T05:56:53Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change based on the source reviewed; optional follow-up is to isolate the reported AMD moved-template assertion before removing draft status.

What I ran

Reviewed head e6a28438bba5c167f98c097df20f644f898e2cc5. No commands or tests were run in this review; repo_read.py was used to inspect the prepared diff and targeted source ranges.

Results

Check Result Note
Source review passed Core publication and moved-buffer paths inspected
Tests not run GPU results below are author-reported

Findings

Blocking

None identified in the source reviewed.

Non-blocking

  • The description reports intermittent AMD failures in buffer_publication and buffer_publication_epoch, with the cause still unisolated. Keep this qualification visible and investigate before treating the behavior as stable.

Not verified

The full text was read for 10 of 13 changed files; targeted ranges and the diff were read for the remaining three: Execution/src/VulkanDevice.cpp, Graphics/src/ShaderResources.cpp, and tests/Graphics.cpp. The author reports builds and test results, but they were not rerun here. Linux, full CTest, physical-console behavior, and the outstanding concurrency and foreign-depth cases were not verified.

To get this to a good state

Nothing is required. Optional: isolate the reported AMD moved-template assertion and record the result before promoting the draft.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6084091787 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6084091787). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T05:56:53Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change based on the source reviewed; optional follow-up is to isolate the reported AMD moved-template assertion before removing draft status. ## What I ran Reviewed head `e6a28438bba5c167f98c097df20f644f898e2cc5`. No commands or tests were run in this review; `repo_read.py` was used to inspect the prepared diff and targeted source ranges. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core publication and moved-buffer paths inspected | | Tests | not run | GPU results below are author-reported | ## Findings ### Blocking None identified in the source reviewed. ### Non-blocking - The description reports intermittent AMD failures in `buffer_publication` and `buffer_publication_epoch`, with the cause still unisolated. Keep this qualification visible and investigate before treating the behavior as stable. ## Not verified The full text was read for 10 of 13 changed files; targeted ranges and the diff were read for the remaining three: `Execution/src/VulkanDevice.cpp`, `Graphics/src/ShaderResources.cpp`, and `tests/Graphics.cpp`. The author reports builds and test results, but they were not rerun here. Linux, full CTest, physical-console behavior, and the outstanding concurrency and foreign-depth cases were not verified. ## To get this to a good state Nothing is required. Optional: isolate the reported AMD moved-template assertion and record the result before promoting the draft.
MarcZX10 commented 2026-11-30 09:45:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T09:45:15Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change based on the source reviewed; the author-reported AMD intermittence remains unresolved.

What I ran

Reviewed head 24df0bccdd7344be25106d14a00f41bd1b969ec4. Read the prepared description, commits, manifest, diff, and every changed line listed in the review folder. Inspected targeted callers and implementations with the pinned repository reader. No tests or builds were run by me.

Results

Check Result Note
Diff and changed lines passed Seven changed files inspected
Targeted source review passed Publication, moved-buffer and revalidation paths
Tests and builds not run Results in description are author-reported

Findings

Blocking

None identified in the code reviewed.

Non-blocking

  • The description reports the moved-template assertion still fails intermittently on AMD (4/6 repeats); this warrants follow-up qualification before claiming the issue is fixed.

Not verified

No tests or builds were run in this review. The full source text of VulkanDevice.cpp and ShaderResources.cpp was excluded from the review folder; only relevant ranges were read through repo_read.py. The changed-line ranges for SampleMultisampleTarget.cpp were supplied in the diff and read. No other repository paths were read.

To get this to a good state

Nothing is required. Optional: resolve and document the AMD intermittent moved-template failure before claiming it is fixed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6109871932 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6109871932). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-30T09:45:15Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change based on the source reviewed; the author-reported AMD intermittence remains unresolved. ## What I ran Reviewed head `24df0bccdd7344be25106d14a00f41bd1b969ec4`. Read the prepared description, commits, manifest, diff, and every changed line listed in the review folder. Inspected targeted callers and implementations with the pinned repository reader. No tests or builds were run by me. ## Results | Check | Result | Note | |---|---|---| | Diff and changed lines | passed | Seven changed files inspected | | Targeted source review | passed | Publication, moved-buffer and revalidation paths | | Tests and builds | not run | Results in description are author-reported | ## Findings ### Blocking None identified in the code reviewed. ### Non-blocking - The description reports the moved-template assertion still fails intermittently on AMD (4/6 repeats); this warrants follow-up qualification before claiming the issue is fixed. ## Not verified No tests or builds were run in this review. The full source text of `VulkanDevice.cpp` and `ShaderResources.cpp` was excluded from the review folder; only relevant ranges were read through `repo_read.py`. The changed-line ranges for `SampleMultisampleTarget.cpp` were supplied in the diff and read. No other repository paths were read. ## To get this to a good state Nothing is required. Optional: resolve and document the AMD intermittent moved-template failure before claiming it is fixed.
MarcZX10 commented 2026-12-02 01:48:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T01:48:16Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: gate moved-buffer cache reuse on successful revalidation.

What I ran

Reviewed head a19727c48a03ef7588e593354354964eb9d1584e. No merged-preview check or tests were run. I inspected the prepared diff and targeted source ranges using repo_read.py at the pinned head; no build or compile was run.

Results

Check Result Note
Diff and targeted source review passed One blocking cache-reuse defect
Tests and GPU checks not run Author-reported results not independently verified
Merged preview not run No preview performed

Negative control

Not run; no non-compiling negative control was available for this review.

Findings

Blocking

  • Draw cache reuse can bypass failed revalidation. MovedReadOnlyBuffers now runs before Revalidate, so it can return a vector even when revalidation fails. The subsequent cache-hit branch checks only moved.has_value() and can therefore reuse stale cached resources despite valid == false. Gate that branch on successful revalidation; move refusals can continue through the existing fallback. This regresses the prior behavior, where moved buffers were computed only after successful revalidation. Draw.cpp:2543 Draw.cpp:2545

Non-blocking

None.

Sources

The finding is based on the moved-buffer lookup and revalidation flow in Draw.cpp at the reviewed commit. The dispatch path’s separate guard is visible in VulkanDevice.cpp at the reviewed commit.

Not verified

Inspected the changed hunks and relevant context in all seven paths listed as reviewed in files.json: VulkanDevice.cpp, ShaderResources.hpp, Draw.cpp, ShaderResources.cpp, agc_driver_sample_multisample_target_tests.cmake, SampleMultisampleTarget.cpp, and native-color-publication.md. files.json lists no excluded paths. Unchanged portions of these files and runtime behavior were not reviewed or verified. The description reports 46 focused CTests passing, NVIDIA 6/6 and AMD 5/6 epoch repeats, and unqualified foreign-depth/concurrency behavior; these are author-reported and were not independently checked.

To get this to a good state

Require valid as well as moved.has_value() before taking the draw cache-hit branch. Then rerun the focused draw recipe and native buffer publication checks on the updated head, including a revalidation-failure case.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6143415296 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6143415296). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-02T01:48:16Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: gate moved-buffer cache reuse on successful revalidation. ## What I ran Reviewed head `a19727c48a03ef7588e593354354964eb9d1584e`. No merged-preview check or tests were run. I inspected the prepared diff and targeted source ranges using `repo_read.py` at the pinned head; no build or compile was run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | One blocking cache-reuse defect | | Tests and GPU checks | not run | Author-reported results not independently verified | | Merged preview | not run | No preview performed | ## Negative control Not run; no non-compiling negative control was available for this review. ## Findings ### Blocking - **Draw cache reuse can bypass failed revalidation.** `MovedReadOnlyBuffers` now runs before `Revalidate`, so it can return a vector even when revalidation fails. The subsequent cache-hit branch checks only `moved.has_value()` and can therefore reuse stale cached resources despite `valid == false`. Gate that branch on successful revalidation; move refusals can continue through the existing fallback. This regresses the prior behavior, where moved buffers were computed only after successful revalidation. [Draw.cpp:2543](https://github.com/boykopovar/AnyPS5/blob/a19727c48a03ef7588e593354354964eb9d1584e/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2543) [Draw.cpp:2545](https://github.com/boykopovar/AnyPS5/blob/a19727c48a03ef7588e593354354964eb9d1584e/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2545) ### Non-blocking None. ## Sources The finding is based on the moved-buffer lookup and revalidation flow in [Draw.cpp at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/a19727c48a03ef7588e593354354964eb9d1584e/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2540-L2564). The dispatch path’s separate guard is visible in [VulkanDevice.cpp at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/a19727c48a03ef7588e593354354964eb9d1584e/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L6955-L7002). ## Not verified Inspected the changed hunks and relevant context in all seven paths listed as reviewed in `files.json`: `VulkanDevice.cpp`, `ShaderResources.hpp`, `Draw.cpp`, `ShaderResources.cpp`, `agc_driver_sample_multisample_target_tests.cmake`, `SampleMultisampleTarget.cpp`, and `native-color-publication.md`. `files.json` lists no excluded paths. Unchanged portions of these files and runtime behavior were not reviewed or verified. The description reports 46 focused CTests passing, NVIDIA 6/6 and AMD 5/6 epoch repeats, and unqualified foreign-depth/concurrency behavior; these are author-reported and were not independently checked. ## To get this to a good state Require `valid` as well as `moved.has_value()` before taking the draw cache-hit branch. Then rerun the focused draw recipe and native buffer publication checks on the updated head, including a revalidation-failure case.
MarcZX10 commented 2026-12-03 23:05:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T23:05:29Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 2bbb29ed2f5bef0eceb997be20f8472a0ec4773d using the pinned repo_read.py reader and the prepared diff. I ran no builds or tests.

python3 repo_read.py cat <changed-path> <start> <end>

Results

Check Result Note
Targeted source inspection passed Reviewed publication and cache paths
Build and tests not run Author-reported results only

Negative control

Not run. The description reports an old-condition control failing on both GPUs; I did not verify it.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

files.json lists nine changed files for review and none excluded. I inspected the changed paths and targeted ranges, including SampleMultisampleTarget.cpp through line 2560; I did not inspect the remainder of that large changed test section. Builds, tests, console behavior, and the reported intermittent AMD assertion were not independently verified. The description reports 57/58 focused CTests passing and an AMD publication assertion failure.

To get this to a good state

Nothing is required. Optional: inspect the remaining added test code and provide a stable AMD repeat or isolate the reported assertion.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6180217285 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6180217285). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-03T23:05:29Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `2bbb29ed2f5bef0eceb997be20f8472a0ec4773d` using the pinned `repo_read.py` reader and the prepared diff. I ran no builds or tests. ```text python3 repo_read.py cat <changed-path> <start> <end> ``` ## Results | Check | Result | Note | |---|---|---| | Targeted source inspection | passed | Reviewed publication and cache paths | | Build and tests | not run | Author-reported results only | ## Negative control Not run. The description reports an old-condition control failing on both GPUs; I did not verify it. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Dispatch cache and moved-buffer publication](https://github.com/boykopovar/AnyPS5/blob/2bbb29ed2f5bef0eceb997be20f8472a0ec4773d/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L6990-L7042) - [Draw reuse validation](https://github.com/boykopovar/AnyPS5/blob/2bbb29ed2f5bef0eceb997be20f8472a0ec4773d/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2538-L2561) - [Guest buffer synchronization](https://github.com/boykopovar/AnyPS5/blob/2bbb29ed2f5bef0eceb997be20f8472a0ec4773d/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L8124-L8143) ## Not verified `files.json` lists nine changed files for review and none excluded. I inspected the changed paths and targeted ranges, including `SampleMultisampleTarget.cpp` through line 2560; I did not inspect the remainder of that large changed test section. Builds, tests, console behavior, and the reported intermittent AMD assertion were not independently verified. The description reports 57/58 focused CTests passing and an AMD publication assertion failure. ## To get this to a good state Nothing is required. Optional: inspect the remaining added test code and provide a stable AMD repeat or isolate the reported assertion.
MarcZX10 commented 2026-12-04 16:27:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T16:27:08Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 59a680b61091aa11ab50e41b6c7a34988f42791e against main. I inspected the prepared review artifacts and targeted source ranges using repo_read.py; I did not run tests, builds, or hardware checks.

cat description.md commits.md manifest.json diff.patch files.json
rg -n '^diff --git|^@@|^\+[^+]' diff.patch
python3 repo_read.py cat <repository-path> <start> <end>
python3 repo_read.py search <pattern> <repository-path>

Results

Check Result Note
Changed-code inspection passed Targeted ranges read across all nine reviewed files
Tests and builds not run No independent execution
Hardware qualification not run Results in the description are author-reported

Findings

Blocking

None.

Non-blocking

The description reports an intermittent AMD moved-template assertion after current-word and output-boundary checks pass, and leaves foreign-depth/concurrent-consumer qualification unresolved. These are disclosed limitations, not verified defects in the inspected changes. Keep the qualification record explicit about their status and scope.

Sources

Not verified

No tests, builds, CI jobs, or physical GPU checks were run. The AMD intermittence cause and foreign-depth/concurrent-consumer behavior remain unverified. I read targeted ranges, not the full contents, of the large source and test files. All nine paths listed under reviewed in files.json were inspected; files.json lists no additionally excluded paths.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6192644192 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7002#pullrequestreview-6192644192). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T16:27:08Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `59a680b61091aa11ab50e41b6c7a34988f42791e` against `main`. I inspected the prepared review artifacts and targeted source ranges using `repo_read.py`; I did not run tests, builds, or hardware checks. ```text cat description.md commits.md manifest.json diff.patch files.json rg -n '^diff --git|^@@|^\+[^+]' diff.patch python3 repo_read.py cat <repository-path> <start> <end> python3 repo_read.py search <pattern> <repository-path> ``` ## Results | Check | Result | Note | |---|---|---| | Changed-code inspection | passed | Targeted ranges read across all nine reviewed files | | Tests and builds | not run | No independent execution | | Hardware qualification | not run | Results in the description are author-reported | ## Findings ### Blocking None. ### Non-blocking The description reports an intermittent AMD moved-template assertion after current-word and output-boundary checks pass, and leaves foreign-depth/concurrent-consumer qualification unresolved. These are disclosed limitations, not verified defects in the inspected changes. Keep the qualification record explicit about their status and scope. ## Sources - [Guest-buffer synchronization before resource revalidation](https://github.com/boykopovar/AnyPS5/blob/59a680b61091aa11ab50e41b6c7a34988f42791e/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L4956) - [Moved-buffer validation and synchronization](https://github.com/boykopovar/AnyPS5/blob/59a680b61091aa11ab50e41b6c7a34988f42791e/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2546) - [Read-only native-color publication path](https://github.com/boykopovar/AnyPS5/blob/59a680b61091aa11ab50e41b6c7a34988f42791e/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L8192) ## Not verified No tests, builds, CI jobs, or physical GPU checks were run. The AMD intermittence cause and foreign-depth/concurrent-consumer behavior remain unverified. I read targeted ranges, not the full contents, of the large source and test files. All nine paths listed under `reviewed` in `files.json` were inspected; `files.json` lists no additionally excluded paths. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/7002:upstream-pr/7002'
git switch 'upstream-pr/7002'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/7002'
git switch 'upstream-pr/7002'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/7002'
git switch 'upstream-pr/7002'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/7002'
git switch 'main'
git merge --squash 'upstream-pr/7002'
git switch 'main'
git merge --ff-only 'upstream-pr/7002'
git switch 'main'
git merge 'upstream-pr/7002'
git push origin 'main'
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!7002
No description provided.