test(agc): cover repeated driver stores into a shared block's exact ring #10333

Merged
SleglJan merged 1 commit from upstream-pr/10333 into main 2026-11-02 10:25:52 +00:00
SleglJan commented 2026-10-23 18:11:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-23T18:11:52Z.


What

Replaces #6868. #7233 (e424d57f9b, @MarcZX10) made a driver store whose range contains earlier pieces of its ring take their slot, and a full ring forget its oldest piece instead of the next in round-robin order, for both the exact and the possible ring. That is the rule #6868 proposed for the exact ring, so this PR drops the code and keeps the tests and the debt line.

What the tests cover that main's do not:

  • CheckRepeatedNeighbourStores (agc_write_tracking): six repeated exact stores of a neighbour's bytes leave the other surface's share of the block unstored and keep their own complete coverage; a store that contains three earlier pieces answers for the contained bytes only and frees their slots, so two more small stores fit without an eviction; a full exact ring forgets its oldest piece and not a newer one, and the forgotten piece counts as a store over the rest of the block; an overlapping store that contains nothing replaces nothing and again evicts the oldest. Main's CheckRepeatedPossibleStores covers the eviction order for possible writes; its exact-ring tests cover distinct stores overflowing the ring only.
  • agc_repeated_neighbour_stores (agc_driver_recorder_tests --repeated-neighbour-stores-only): a 1024x512 linear RGBA8 storage image, cleared on the GPU and written back after five driver stores of the 0x6000 neighbour bytes in its last 64 KiB block, over watched memory and over a watched host import: every texel keeps the GPU's value and the neighbour bytes stay intact. An arm that cannot run says why and is skipped: "no write watching: repeated neighbour stores over watched memory not tested" (and the same for the host-import arm) without a write watch, "host imports unavailable: ..." without host imports, "Linux write watch only" for the import arm on Windows. The mode returns 77 (ctest: Skipped) when no arm ran and 0 when every arm that ran passed; a failed arm throws and the suite exits 1. Without a usable Vulkan device the suite returns 77, or 1 when ANYPS5_REQUIRE_VULKAN is set.
  • Debt line (docs/dev/debt/libSceAgcDriver.md): what an evicted piece costs for both rings — StoredOver true for every range of the block at older generations, StoredAllSince false for the exact ring only, a storage image's write-back leaving a shared block to the CPU, a native multisample depth clear refusing (exact ring).

@milescoviello's fix/driver-store-forget (4f4729b084, one commit on an earlier #7233 head, 42cbe0c334: eight pieces per ring, evicted pieces kept as up to four ranges that merge their two oldest) would rewrite this debt line and change the four-piece counts in these tests. This PR does not depend on it.

Overlap (2026-10-28 22:55Z, against the then head d6eed67d4e and main b76d41ea82: git merge-tree of every open PR that touches one of these four files (tests/Recorder.cpp, tests/WriteTracking.cpp, CMakeLists.txt, the debt file) or whose file list GitHub caps at 100 entries, 234 of the 1,392 open, each against this head and against main): #10159 conflicts with this PR and not with main, in Recorder.cpp at the spot after refreshProofTests where this PR's repeatedNeighbourStoreTests goes; #12378 the same in the debt file, where this PR's line precedes the three entries it rewrites. Whichever merges second re-places one function or one line. 76 PRs conflict with main in the same files with or without this PR (#9508, #10193 and #7642 among them); the other 156 merge cleanly with both. Of the PRs this paragraph named on 2026-10-25, #9521, #9275 and #7505 have merged (#9521's mode line is the one conflict the rebase onto b76d41ea82 resolved) and #10026 now merges cleanly with both. Rechecked at c0d7a684c8 on 3a2b919816: see the reply to @MarcZX10. Rechecked at 30983dab5f on 47cdccde40 (2026-10-30 06:41Z; 250 PRs of the 1,488 open: every other open PR whose file list touches one of the four files, the 12 lists GitHub caps at 100 entries read through the API): #10159 is still the one PR that conflicts with this PR and not with main, in Recorder.cpp at the spot after refreshProofTests where this PR's repeatedNeighbourStoreTests and #10159's pendingKeyRefreshTests both go; #12378 has merged (712fc0e924, 2026-10-30 05:54Z), and its rewrite of the three debt entries after this PR's line is the one conflict this rebase resolved. 97 conflict with main in the same files with or without this PR; the other 152 merge cleanly with both.

Tested

Head 30983dab5fa308d021116aa7957da48efeb0e978 is this PR's single commit rebased onto upstream/main 47cdccde40 (2026-10-30 06:24Z, "Merge pull request #12437 from pushkarreddyy/fix/sanitizer-report-summary-validation"). One conflict, in the debt file: #12378 (merged 2026-10-30 05:54Z as 712fc0e924) rewrote the three entries that follow this PR's line; the rebase keeps main's text for them and this PR's line, unchanged, before them. git range-diff against the previous head c0d7a684c8 shows the patch unchanged; only that context differs. Main's 53 non-merge commits, from 31 PRs, to this PR's four files between 3a2b919816 and 47cdccde40 (#12378, #12264, #12559, #12690, #9243, #11550 and #12927 among them) merge with this PR's additions without a change to them; at this head the registration is at CMakeLists.txt 1829–1834, repeatedNeighbourStoreTests at Recorder.cpp 7648 with its mode at 12502 and its call at 12809, CheckRepeatedNeighbourStores at WriteTracking.cpp 204 with its call at 2220, and the debt line is line 156. The driver-store ring code in GuestMemory.cpp is unchanged since 938812df14. That file's three commits between 3a2b919816 and 47cdccde40, all from #12378, are Windows-only: blockPartWatched now counts a stored part of a block as watched when any of its pages is watched, not only its first or last (as the Linux branch already does), and it decides whether a driver store reaches the rings; walkHints stamps the watched pages a hint walk clears as CPU stores. The Linux runs below do not exercise either change, and the Windows run under Earlier runs predates it.

  • Linux, NVIDIA GeForce RTX 3080 (driver 615.78.08, CachyOS, kernel 7.2.10; write watch and host imports available), 2026-10-30 06:49Z, at 30983dab5f: the test binaries built on the Linux build host below, run directly (not through ctest) with LD_LIBRARY_PATH set to the build's core/libs/libs/unpatched (copied with the binaries): agc_write_tracking_tests passes ("write tracking tests passed"); agc_driver_recorder_tests --repeated-neighbour-stores-only passes both arms ("repeated neighbour stores over watched memory: ok", "repeated neighbour stores over a watched host import: ok"). Exact commands, environment and output: in the reply at this head.
  • Linux build host (Arch Linux, GCC 16.2.1, Release, BUILD_TESTING=ON, Ninja; lavapipe, Mesa 26.2.4, LLVM 23.1.1; no write watch, userfaultfd not permitted), 2026-10-30 06:49Z, at 30983dab5f: ctest -R '^(agc_write_tracking|agc_repeated_neighbour_stores)$': both ***Skipped (77); agc_write_tracking prints "no write watching: skipped", agc_repeated_neighbour_stores prints "no write watching: repeated neighbour stores over watched memory not tested" and "no write watching: repeated neighbour stores over a watched host import not tested".
  • python3 tools/check_conventions.py --base upstream/main: passes at 30983dab5f.
  • Paired validation per CONTRIBUTING.md:72, 2026-10-30 14:55Z, same desktop and GPU: main = this PR's parent 47cdccde40 (so the pair isolates this PR; main's later commits to these files and a clean merge preview against ed1e0ed08f are in the reply) and this head, both built on the desktop (Release, BUILD_TESTING=ON, GCC 16.2.1) and run from their build trees with ctest -V -R '^(agc_write_tracking|agc_write_tracking_[a-z_]+|agc_driver_recorder|agc_repeated_neighbour_stores)$' (the second alternative names Windows-only modes and matches no test on Linux) under VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1 (validation layer 1.4.363.0; VK_LOADER_DEBUG=layer added for the proof of insertion): main 2 of 2 passed, this head 3 of 3 (agc_repeated_neighbour_stores exists only here). The loader inserted VK_LAYER_KHRONOS_validation for agc_driver_recorder on both sides and for agc_repeated_neighbour_stores; agc_write_tracking creates no Vulkan instance and adds no validation coverage (a control with a bogus layer name shows the loader's not-found line on the recorder test and none on agc_write_tracking). Neither log reports "was not found but was requested by env var VK_INSTANCE_LAYERS"; neither has a VUID- message, so no new VUID against main in these tests. Exact commands and output in the paired-validation reply.
  • TechLevelZero's NVIDIA CI run of this head merged onto main 98ddd9c, 2026-10-30 12:28Z (comment), NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329, Linux (Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04), 2,411 selected tests, the GPU ones under VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1, main run the same way: 2,367 passed, 3 failed (0 new: 2 also fail on main, 1 unstable on main), 41 skipped; no new validation IDs against main over the 904 tests run on the GPU; agc_repeated_neighbour_stores validated but not compared (main has no baseline for it).

Earlier runs (before this rebase; same desktop and build host, binaries built the same way):

  • At c0d7a684c8 (this commit on 3a2b919816, 2026-10-29 01:27Z on lavapipe and 02:00Z on the RTX 3080): the same results; exact commands, environment and output in the reply to @MarcZX10.
  • At d6eed67d4e (this commit on b76d41ea82, 2026-10-28 23:01Z on lavapipe and 2026-10-29 00:32Z on the RTX 3080): the same results; exact commands, environment and output in the reply to @MarcZX10.
  • At e3e47a939c (this commit on b91a6a60c5, 2026-10-25 11:07Z on lavapipe and 11:12Z on the RTX 3080): the same results, agc_write_tracking_tests and both arms of agc_driver_recorder_tests --repeated-neighbour-stores-only pass on the RTX 3080, both tests skip (77) on lavapipe.
  • At 41a5976cce (this commit on f26434afa3, 2026-10-24 23:15Z and 23:04Z): the same results; exact commands, environment and output in the reply to @oneandonlydean.
  • At d7ed8e578b (this commit on c8d34aa8f4, 2026-10-24 21:32Z and 21:43Z): the same results, agc_write_tracking_tests and both arms of agc_driver_recorder_tests --repeated-neighbour-stores-only pass on the RTX 3080, both tests skip (77) on lavapipe.
  • Red at 9ce5037ccf (e424d57f9b's parent, 2026-10-23) with these tests: agc_write_tracking_tests fails at "repeated stores of the neighbour's bytes count for the first surface's part of the shared block". A local variant that catches six groups of checks separately (not in this PR; the first two groups hold two checks each and stop at their first failure) fails four: that one, "a store over earlier pieces counts for the first surface's part of the shared block", "a full exact ring evicted a newer piece instead of its oldest" and "a store that overlaps without containing evicted a newer piece instead of the oldest". Three checks that round-robin eviction also satisfies pass: the containing store's own-range check, a forgotten piece counting for the rest of the block, and an overlapping store that contains nothing replacing nothing. agc_driver_recorder_tests --repeated-neighbour-stores-only: the watched-memory arm passes (the block's bytes still equal the image's upload copy, so the write-back stores it anyway); the host-import arm fails: "repeated neighbour stores over a watched host import: 2048 of 524288 texels the GPU wrote were not stored".
  • Green at e424d57f9b (9ce5037ccf's child, 2026-10-23): both tests pass.
  • Green on 938812df14 with these tests (2026-10-23): both pass.
  • Windows: @BKlaasWerkman's run (Windows 11, WinLibs GCC 15.2.0, Intel Arc Graphics, driver 101.9150) was at 7a7b4b4751 merged into ec5b89a5ec, before 940d2a31f6 (per-arm ok lines, 77 without a watched arm): agc_write_tracking and agc_repeated_neighbour_stores passed there, the host-import arm reporting "Linux write watch only"; not rerun since.
  • Validation layer on the new GPU test (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, 938812df14 + this PR before 940d2a31f6): no VUID- message, no "was not found but was requested by env var VK_INSTANCE_LAYERS"; with VK_LOADER_DEBUG=layer the loader reports the layer inserted.
  • lavapipe baseline on the build host (no write watch): agc ctest subset on plain 938812df14: 907/931, 24 failed, of which agc_driver_sgpr_pattern_fill_keys and agc_driver_shutdown_threads_queued_prebuilds pass on two re-runs of the idle node (they ran under a concurrent build); with this PR: 910/932, the same 22 failures (lavapipe and no-write-watch cases: native depth, MSAA DCC clears, fmask, sRGB copies, image-table vouching, staged clears, resource-cache and lifetime tests); agc_write_tracking Skipped (77); agc_repeated_neighbour_stores counted as passed because the mode then exited 0 without a watched arm (it returns 77 since 940d2a31f6).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3080, driver 615.78.08, Linux (CachyOS, kernel 7.2.10), both tests at 30983dab5f, c0d7a684c8, d6eed67d4e, e3e47a939c, 41a5976cce, d7ed8e578b and on 938812df14; lavapipe (Mesa 26.2.4, Arch Linux) on the build host, both tests skip (77) at 30983dab5f, c0d7a684c8, d6eed67d4e, e3e47a939c, 41a5976cce and d7ed8e578b, agc ctest baseline on 938812df14; Intel Arc Graphics (driver 101.9150, Windows 11) by @BKlaasWerkman at 7a7b4b4751; paired validation-layer run (vulkan-validation-layers 1.4.363.0) at 30983dab5f against its parent 47cdccde40 on the same RTX 3080: no VUID- message on either side; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Linux, Ubuntu 26.04.1 LTS) by TechLevelZero's NVIDIA CI at 30983dab5f merged onto main 98ddd9c: no new validation IDs against main.
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4987261416 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-23T18:11:52Z. --- ### What Replaces #6868. #7233 (e424d57f9b, @MarcZX10) made a driver store whose range contains earlier pieces of its ring take their slot, and a full ring forget its oldest piece instead of the next in round-robin order, for both the exact and the possible ring. That is the rule #6868 proposed for the exact ring, so this PR drops the code and keeps the tests and the debt line. What the tests cover that main's do not: - `CheckRepeatedNeighbourStores` (agc_write_tracking): six repeated exact stores of a neighbour's bytes leave the other surface's share of the block unstored and keep their own complete coverage; a store that contains three earlier pieces answers for the contained bytes only and frees their slots, so two more small stores fit without an eviction; a full exact ring forgets its oldest piece and not a newer one, and the forgotten piece counts as a store over the rest of the block; an overlapping store that contains nothing replaces nothing and again evicts the oldest. Main's `CheckRepeatedPossibleStores` covers the eviction order for possible writes; its exact-ring tests cover distinct stores overflowing the ring only. - `agc_repeated_neighbour_stores` (agc_driver_recorder_tests --repeated-neighbour-stores-only): a 1024x512 linear RGBA8 storage image, cleared on the GPU and written back after five driver stores of the 0x6000 neighbour bytes in its last 64 KiB block, over watched memory and over a watched host import: every texel keeps the GPU's value and the neighbour bytes stay intact. An arm that cannot run says why and is skipped: "no write watching: repeated neighbour stores over watched memory not tested" (and the same for the host-import arm) without a write watch, "host imports unavailable: ..." without host imports, "Linux write watch only" for the import arm on Windows. The mode returns 77 (ctest: Skipped) when no arm ran and 0 when every arm that ran passed; a failed arm throws and the suite exits 1. Without a usable Vulkan device the suite returns 77, or 1 when ANYPS5_REQUIRE_VULKAN is set. - Debt line (docs/dev/debt/libSceAgcDriver.md): what an evicted piece costs for both rings — `StoredOver` true for every range of the block at older generations, `StoredAllSince` false for the exact ring only, a storage image's write-back leaving a shared block to the CPU, a native multisample depth clear refusing (exact ring). @milescoviello's [fix/driver-store-forget](https://github.com/milescoviello/AnyPS5/tree/fix/driver-store-forget) (4f4729b084, one commit on an earlier #7233 head, 42cbe0c334: eight pieces per ring, evicted pieces kept as up to four ranges that merge their two oldest) would rewrite this debt line and change the four-piece counts in these tests. This PR does not depend on it. Overlap (2026-10-28 22:55Z, against the then head d6eed67d4e and main b76d41ea82: `git merge-tree` of every open PR that touches one of these four files (tests/Recorder.cpp, tests/WriteTracking.cpp, CMakeLists.txt, the debt file) or whose file list GitHub caps at 100 entries, 234 of the 1,392 open, each against this head and against main): #10159 conflicts with this PR and not with main, in Recorder.cpp at the spot after `refreshProofTests` where this PR's `repeatedNeighbourStoreTests` goes; #12378 the same in the debt file, where this PR's line precedes the three entries it rewrites. Whichever merges second re-places one function or one line. 76 PRs conflict with main in the same files with or without this PR (#9508, #10193 and #7642 among them); the other 156 merge cleanly with both. Of the PRs this paragraph named on 2026-10-25, #9521, #9275 and #7505 have merged (#9521's mode line is the one conflict the rebase onto b76d41ea82 resolved) and #10026 now merges cleanly with both. Rechecked at c0d7a684c8 on 3a2b919816: see [the reply to @MarcZX10](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6485992250). Rechecked at 30983dab5f on 47cdccde40 (2026-10-30 06:41Z; 250 PRs of the 1,488 open: every other open PR whose file list touches one of the four files, the 12 lists GitHub caps at 100 entries read through the API): #10159 is still the one PR that conflicts with this PR and not with main, in Recorder.cpp at the spot after `refreshProofTests` where this PR's `repeatedNeighbourStoreTests` and #10159's `pendingKeyRefreshTests` both go; #12378 has merged (712fc0e924, 2026-10-30 05:54Z), and its rewrite of the three debt entries after this PR's line is the one conflict this rebase resolved. 97 conflict with main in the same files with or without this PR; the other 152 merge cleanly with both. ### Tested Head 30983dab5fa308d021116aa7957da48efeb0e978 is this PR's single commit rebased onto upstream/main 47cdccde40bca36c1203ec498d9ff47f23bc6537 (2026-10-30 06:24Z, "Merge pull request #12437 from pushkarreddyy/fix/sanitizer-report-summary-validation"). One conflict, in the debt file: #12378 (merged 2026-10-30 05:54Z as 712fc0e924) rewrote the three entries that follow this PR's line; the rebase keeps main's text for them and this PR's line, unchanged, before them. `git range-diff` against the previous head c0d7a684c8 shows the patch unchanged; only that context differs. Main's 53 non-merge commits, from 31 PRs, to this PR's four files between 3a2b919816 and 47cdccde40 (#12378, #12264, #12559, #12690, #9243, #11550 and #12927 among them) merge with this PR's additions without a change to them; at this head the registration is at CMakeLists.txt 1829–1834, `repeatedNeighbourStoreTests` at Recorder.cpp 7648 with its mode at 12502 and its call at 12809, `CheckRepeatedNeighbourStores` at WriteTracking.cpp 204 with its call at 2220, and the debt line is line 156. The driver-store ring code in GuestMemory.cpp is unchanged since 938812df14. That file's three commits between 3a2b919816 and 47cdccde40, all from #12378, are Windows-only: `blockPartWatched` now counts a stored part of a block as watched when any of its pages is watched, not only its first or last (as the Linux branch already does), and it decides whether a driver store reaches the rings; `walkHints` stamps the watched pages a hint walk clears as CPU stores. The Linux runs below do not exercise either change, and the Windows run under Earlier runs predates it. - Linux, NVIDIA GeForce RTX 3080 (driver 615.78.08, CachyOS, kernel 7.2.10; write watch and host imports available), 2026-10-30 06:49Z, at 30983dab5f: the test binaries built on the Linux build host below, run directly (not through ctest) with LD_LIBRARY_PATH set to the build's core/libs/libs/unpatched (copied with the binaries): `agc_write_tracking_tests` passes ("write tracking tests passed"); `agc_driver_recorder_tests --repeated-neighbour-stores-only` passes both arms ("repeated neighbour stores over watched memory: ok", "repeated neighbour stores over a watched host import: ok"). Exact commands, environment and output: in [the reply at this head](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6517063763). - Linux build host (Arch Linux, GCC 16.2.1, Release, BUILD_TESTING=ON, Ninja; lavapipe, Mesa 26.2.4, LLVM 23.1.1; no write watch, userfaultfd not permitted), 2026-10-30 06:49Z, at 30983dab5f: `ctest -R '^(agc_write_tracking|agc_repeated_neighbour_stores)$'`: both `***Skipped` (77); agc_write_tracking prints "no write watching: skipped", agc_repeated_neighbour_stores prints "no write watching: repeated neighbour stores over watched memory not tested" and "no write watching: repeated neighbour stores over a watched host import not tested". - `python3 tools/check_conventions.py --base upstream/main`: passes at 30983dab5f. - Paired validation per CONTRIBUTING.md:72, 2026-10-30 14:55Z, same desktop and GPU: `main` = this PR's parent 47cdccde40 (so the pair isolates this PR; `main`'s later commits to these files and a clean merge preview against ed1e0ed08f are in the reply) and this head, both built on the desktop (Release, BUILD_TESTING=ON, GCC 16.2.1) and run from their build trees with `ctest -V -R '^(agc_write_tracking|agc_write_tracking_[a-z_]+|agc_driver_recorder|agc_repeated_neighbour_stores)$'` (the second alternative names Windows-only modes and matches no test on Linux) under VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1 (validation layer 1.4.363.0; VK_LOADER_DEBUG=layer added for the proof of insertion): `main` 2 of 2 passed, this head 3 of 3 (agc_repeated_neighbour_stores exists only here). The loader inserted VK_LAYER_KHRONOS_validation for agc_driver_recorder on both sides and for agc_repeated_neighbour_stores; agc_write_tracking creates no Vulkan instance and adds no validation coverage (a control with a bogus layer name shows the loader's not-found line on the recorder test and none on agc_write_tracking). Neither log reports "was not found but was requested by env var VK_INSTANCE_LAYERS"; neither has a VUID- message, so no new VUID against `main` in these tests. Exact commands and output in [the paired-validation reply](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6526310569). - TechLevelZero's NVIDIA CI run of this head merged onto main 98ddd9c, 2026-10-30 12:28Z ([comment](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6522854343)), NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329, Linux (Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04), 2,411 selected tests, the GPU ones under VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1, main run the same way: 2,367 passed, 3 failed (0 new: 2 also fail on main, 1 unstable on main), 41 skipped; no new validation IDs against main over the 904 tests run on the GPU; agc_repeated_neighbour_stores validated but not compared (main has no baseline for it). Earlier runs (before this rebase; same desktop and build host, binaries built the same way): - At c0d7a684c8 (this commit on 3a2b919816, 2026-10-29 01:27Z on lavapipe and 02:00Z on the RTX 3080): the same results; exact commands, environment and output in [the reply to @MarcZX10](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6485992250). - At d6eed67d4e (this commit on b76d41ea82, 2026-10-28 23:01Z on lavapipe and 2026-10-29 00:32Z on the RTX 3080): the same results; exact commands, environment and output in [the reply to @MarcZX10](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6484752419). - At e3e47a939c (this commit on b91a6a60c5, 2026-10-25 11:07Z on lavapipe and 11:12Z on the RTX 3080): the same results, `agc_write_tracking_tests` and both arms of `agc_driver_recorder_tests --repeated-neighbour-stores-only` pass on the RTX 3080, both tests skip (77) on lavapipe. - At 41a5976cce (this commit on f26434afa3, 2026-10-24 23:15Z and 23:04Z): the same results; exact commands, environment and output in [the reply to @oneandonlydean](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6390833206). - At d7ed8e578b (this commit on c8d34aa8f4, 2026-10-24 21:32Z and 21:43Z): the same results, `agc_write_tracking_tests` and both arms of `agc_driver_recorder_tests --repeated-neighbour-stores-only` pass on the RTX 3080, both tests skip (77) on lavapipe. - Red at 9ce5037ccf (e424d57f9b's parent, 2026-10-23) with these tests: agc_write_tracking_tests fails at "repeated stores of the neighbour's bytes count for the first surface's part of the shared block". A local variant that catches six groups of checks separately (not in this PR; the first two groups hold two checks each and stop at their first failure) fails four: that one, "a store over earlier pieces counts for the first surface's part of the shared block", "a full exact ring evicted a newer piece instead of its oldest" and "a store that overlaps without containing evicted a newer piece instead of the oldest". Three checks that round-robin eviction also satisfies pass: the containing store's own-range check, a forgotten piece counting for the rest of the block, and an overlapping store that contains nothing replacing nothing. agc_driver_recorder_tests --repeated-neighbour-stores-only: the watched-memory arm passes (the block's bytes still equal the image's upload copy, so the write-back stores it anyway); the host-import arm fails: "repeated neighbour stores over a watched host import: 2048 of 524288 texels the GPU wrote were not stored". - Green at e424d57f9b (9ce5037ccf's child, 2026-10-23): both tests pass. - Green on 938812df14 with these tests (2026-10-23): both pass. - Windows: [@BKlaasWerkman's run](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6375296198) (Windows 11, WinLibs GCC 15.2.0, Intel Arc Graphics, driver 101.9150) was at 7a7b4b4751 merged into ec5b89a5ec, before 940d2a31f6 (per-arm ok lines, 77 without a watched arm): `agc_write_tracking` and `agc_repeated_neighbour_stores` passed there, the host-import arm reporting "Linux write watch only"; not rerun since. - Validation layer on the new GPU test (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, 938812df14 + this PR before 940d2a31f6): no `VUID-` message, no "was not found but was requested by env var VK_INSTANCE_LAYERS"; with VK_LOADER_DEBUG=layer the loader reports the layer inserted. - lavapipe baseline on the build host (no write watch): `agc` ctest subset on plain 938812df14: 907/931, 24 failed, of which agc_driver_sgpr_pattern_fill_keys and agc_driver_shutdown_threads_queued_prebuilds pass on two re-runs of the idle node (they ran under a concurrent build); with this PR: 910/932, the same 22 failures (lavapipe and no-write-watch cases: native depth, MSAA DCC clears, fmask, sRGB copies, image-table vouching, staged clears, resource-cache and lifetime tests); agc_write_tracking Skipped (77); agc_repeated_neighbour_stores counted as passed because the mode then exited 0 without a watched arm (it returns 77 since 940d2a31f6). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3080, driver 615.78.08, Linux (CachyOS, kernel 7.2.10), both tests at 30983dab5f, c0d7a684c8, d6eed67d4e, e3e47a939c, 41a5976cce, d7ed8e578b and on 938812df14; lavapipe (Mesa 26.2.4, Arch Linux) on the build host, both tests skip (77) at 30983dab5f, c0d7a684c8, d6eed67d4e, e3e47a939c, 41a5976cce and d7ed8e578b, `agc` ctest baseline on 938812df14; Intel Arc Graphics (driver 101.9150, Windows 11) by @BKlaasWerkman at 7a7b4b4751; paired validation-layer run (vulkan-validation-layers 1.4.363.0) at 30983dab5f against its parent 47cdccde40 on the same RTX 3080: no VUID- message on either side; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Linux, Ubuntu 26.04.1 LTS) by TechLevelZero's NVIDIA CI at 30983dab5f merged onto main 98ddd9c: no new validation IDs against main. - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-24 21:03:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:03:05Z.

Review: CHANGES_REQUESTED


I reviewed exact head 940d2a31f69ed1f5beee0626cd18f2687cf7c13a, including the exact-ring assertions, the watched-memory/host-import GPU regression, skip behavior, cleanup, and the debt update. The added checks distinguish the containing-store behavior and oldest-piece eviction from round-robin eviction; the recorder mode reports each arm and returns CTest's skip code when no watched arm runs. The author reports a red host-import control on the old implementation, green runs on the current behavior, and separate Windows/Linux coverage. The hosted product tests are skipped by path policy.

One required integration step remains: this branch is based on 938812df1403 (merge #9168), while current main is c8d34aa8f4d8; git rev-list shows 7,963 commits on main since the merge base. CONTRIBUTING.md says to keep the branch up to date with main. The heads merge cleanly, but the reported GPU and write-tracking runs were performed on the older base, and no hosted product test ran on the current main merge. Please update the branch to current main and rerun agc_write_tracking plus agc_repeated_neighbour_stores on the resulting tree, including the Linux host-import arm where supported. Then I can complete the review against the supported base.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640018209 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333#pullrequestreview-5640018209). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:03:05Z. **Review:** CHANGES_REQUESTED --- I reviewed exact head `940d2a31f69ed1f5beee0626cd18f2687cf7c13a`, including the exact-ring assertions, the watched-memory/host-import GPU regression, skip behavior, cleanup, and the debt update. The added checks distinguish the containing-store behavior and oldest-piece eviction from round-robin eviction; the recorder mode reports each arm and returns CTest's skip code when no watched arm runs. The author reports a red host-import control on the old implementation, green runs on the current behavior, and separate Windows/Linux coverage. The hosted product tests are skipped by path policy. One required integration step remains: this branch is based on `938812df1403` (merge #9168), while current `main` is `c8d34aa8f4d8`; `git rev-list` shows 7,963 commits on main since the merge base. `CONTRIBUTING.md` says to keep the branch up to date with main. The heads merge cleanly, but the reported GPU and write-tracking runs were performed on the older base, and no hosted product test ran on the current main merge. Please update the branch to current main and rerun `agc_write_tracking` plus `agc_repeated_neighbour_stores` on the resulting tree, including the Linux host-import arm where supported. Then I can complete the review against the supported base.
MarcZX10 commented 2026-10-28 22:15:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:15:00Z.

Review: CHANGES_REQUESTED


The new unit and GPU regression coverage is carefully scoped, and the reported RTX 3080 runs exercise both watched-memory and watched-host-import arms. The reported no-write-watch environment also skips with return code 77 as intended. The hosted checks currently pass conventions, eligibility, labels, and the progress report; Linux, Windows, write-watch, and relinker jobs are skipped, so hosted CI does not independently run these tests.

I cannot approve the current head (e3e47a939c278dcf992482bd6465057fe9f71d1e) yet: GitHub currently reports the branch as CONFLICTING / DIRTY with main. Current main has continued changing the AGC driver CMake and test files since the base described in the provided run report. Please resolve the conflicts against current main, verify the test registration and assertions in the resulting tree, and rerun agc_write_tracking plus agc_repeated_neighbour_stores there, including the Linux watched-host-import arm where available. The prior detailed results are useful evidence, but they predate this conflicting integration state.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690402876 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333#pullrequestreview-5690402876). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T22:15:00Z. **Review:** CHANGES_REQUESTED --- The new unit and GPU regression coverage is carefully scoped, and the reported RTX 3080 runs exercise both watched-memory and watched-host-import arms. The reported no-write-watch environment also skips with return code 77 as intended. The hosted checks currently pass conventions, eligibility, labels, and the progress report; Linux, Windows, write-watch, and relinker jobs are skipped, so hosted CI does not independently run these tests. I cannot approve the current head (`e3e47a939c278dcf992482bd6465057fe9f71d1e`) yet: GitHub currently reports the branch as `CONFLICTING` / `DIRTY` with `main`. Current `main` has continued changing the AGC driver CMake and test files since the base described in the provided run report. Please resolve the conflicts against current `main`, verify the test registration and assertions in the resulting tree, and rerun `agc_write_tracking` plus `agc_repeated_neighbour_stores` there, including the Linux watched-host-import arm where available. The prior detailed results are useful evidence, but they predate this conflicting integration state.
MarcZX10 commented 2026-10-29 00:44:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T00:44:14Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The test additions are focused and the reported watched-memory and watched-host-import runs are useful, but the submitted head is not the revision those runs identify and is substantially behind current main.

What I ran

  • Inspected exact PR head d6eed67d4e2a6ccb91ea2e417b2fc25a42d67650, its four-file diff, current main, and the branch/update rules.
  • Checked GitHub CI and ran git diff --check against the merge base.
  • Previewed the merge with current main; it merges cleanly, while both branches edit the AGC CMake list and debt file.

Results

Check Result
Hosted conventions
Raw statusconventions pass
Hosted Windows
Raw statuswindows pending
Other hosted jobs
Raw statuslinux skipping; register-context skipping; relinker skipping; relinker-asan skipping; write-watch skipping
Local whitespace check
Raw outputgit diff --check upstream/main...refs/review/pr-10333 — no output; exit status 0
Merge preview
Raw outputmerge-tree-exit=0; edits from both branches in core/libs/prx/libSceAgcDriver/CMakeLists.txt and docs/dev/debt/libSceAgcDriver.md
Branch freshness
Raw valuesMerge base b76d41ea82791ba2ccab7ec299b74a0ad3e8b44b; current main is 3a2b91981651569163768854a1fcdc7193b6667b; 127 commits from this PR head to current main.

Negative control

The description reports red results on the old implementation and green watched-memory plus watched-host-import runs on rebased commit 41a5976cce6a3ee259deb51d69917684b5ba3173. I did not independently run these tests. The current PR head is d6eed67d4e2a6ccb91ea2e417b2fc25a42d67650, so the report does not identify the submitted revision.

Findings

Blocking

  • CONTRIBUTING.md requires branches to stay up to date with main. Please rebase this PR on current main and rerun agc_write_tracking and agc_repeated_neighbour_stores on the resulting head. Update the description to identify that exact revision and include the per-arm output, including a skip result where write watching or host imports are unavailable.

Non-blocking

  • The current merge preview is clean, but the CMake registration and debt file both changed on main since the branch's merge base; please check those hunks during the rebase.

Sources

  • PR diff and CI reviewed at d6eed67d4e2a6ccb91ea2e417b2fc25a42d67650.
  • Current base: main at 3a2b91981651569163768854a1fcdc7193b6667b.
  • Contribution rules: CONTRIBUTING.md at 3a2b91981651569163768854a1fcdc7193b6667b.

Not verified

I did not run a local build, watched-memory tests, watched-host-import tests, or console tests. Linux and specialized hosted jobs were skipped, and the Windows job is pending. The GPU results cited above are author-provided and from a different commit than the current PR head.

To get this to a good state

Rebase onto current main, resolve/check the CMake and debt edits, run both focused tests on the resulting head in a watched environment (including host imports where supported), and update the report with the exact head and per-arm output.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691518792 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333#pullrequestreview-5691518792). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T00:44:14Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The test additions are focused and the reported watched-memory and watched-host-import runs are useful, but the submitted head is not the revision those runs identify and is substantially behind current `main`. ## What I ran - Inspected exact PR head `d6eed67d4e2a6ccb91ea2e417b2fc25a42d67650`, its four-file diff, current `main`, and the branch/update rules. - Checked GitHub CI and ran `git diff --check` against the merge base. - Previewed the merge with current `main`; it merges cleanly, while both branches edit the AGC CMake list and debt file. ## Results | Check | Result | |---|---| | Hosted conventions | <details><summary>Raw status</summary><code>conventions pass</code></details> | | Hosted Windows | <details><summary>Raw status</summary><code>windows pending</code></details> | | Other hosted jobs | <details><summary>Raw status</summary><code>linux skipping; register-context skipping; relinker skipping; relinker-asan skipping; write-watch skipping</code></details> | | Local whitespace check | <details><summary>Raw output</summary><code>git diff --check upstream/main...refs/review/pr-10333</code> — no output; exit status 0</details> | | Merge preview | <details><summary>Raw output</summary><code>merge-tree-exit=0</code>; edits from both branches in <code>core/libs/prx/libSceAgcDriver/CMakeLists.txt</code> and <code>docs/dev/debt/libSceAgcDriver.md</code></details> | | Branch freshness | <details><summary>Raw values</summary>Merge base `b76d41ea82791ba2ccab7ec299b74a0ad3e8b44b`; current `main` is `3a2b91981651569163768854a1fcdc7193b6667b`; 127 commits from this PR head to current `main`.</details> | ## Negative control The description reports red results on the old implementation and green watched-memory plus watched-host-import runs on rebased commit `41a5976cce6a3ee259deb51d69917684b5ba3173`. I did not independently run these tests. The current PR head is `d6eed67d4e2a6ccb91ea2e417b2fc25a42d67650`, so the report does not identify the submitted revision. ## Findings ### Blocking - `CONTRIBUTING.md` requires branches to stay up to date with `main`. Please rebase this PR on current `main` and rerun `agc_write_tracking` and `agc_repeated_neighbour_stores` on the resulting head. Update the description to identify that exact revision and include the per-arm output, including a skip result where write watching or host imports are unavailable. ### Non-blocking - The current merge preview is clean, but the CMake registration and debt file both changed on `main` since the branch's merge base; please check those hunks during the rebase. ## Sources - PR diff and CI reviewed at `d6eed67d4e2a6ccb91ea2e417b2fc25a42d67650`. - Current base: `main` at `3a2b91981651569163768854a1fcdc7193b6667b`. - Contribution rules: `CONTRIBUTING.md` at `3a2b91981651569163768854a1fcdc7193b6667b`. ## Not verified I did not run a local build, watched-memory tests, watched-host-import tests, or console tests. Linux and specialized hosted jobs were skipped, and the Windows job is pending. The GPU results cited above are author-provided and from a different commit than the current PR head. ## To get this to a good state Rebase onto current `main`, resolve/check the CMake and debt edits, run both focused tests on the resulting head in a watched environment (including host imports where supported), and update the report with the exact head and per-arm output.
MarcZX10 commented 2026-10-29 02:32:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T02:32:46Z.

Review: APPROVED


Re-checked — new head, looks good

I reviewed exact head c0d7a684c82606111b17e721e57d34ec864291d9 against current main 3a2b919816; the merge preview is clean, the author’s current-head RTX runs cover both watched-memory arms, and the hosted Windows workflow completed successfully.

What I ran

Environment: Linux x86_64, kernel 6.1.0-54-amd64, Python 3.11.2. I reviewed the four-file test and debt diff and ran:

git diff --check upstream/main...refs/remotes/review/10333
python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/10333
git merge-tree --write-tree upstream/main refs/remotes/review/10333
gh pr checks 10333 --repo boykopovar/AnyPS5

I did not build or execute the C++ test binaries locally. The Windows workflow linked the changed host-only test executable, but its CMake library build and CTest steps were skipped. The GPU test results below are the author’s exact-head report, not local runs.

Results

Check Result
Current-main merge preview Clean
Diff check Passed
Conventions Passed
Hosted Windows changed host-only test linking Passed
Hosted Windows CMake library build and CTest Skipped
Hosted Linux and specialized jobs Skipped
Author-reported exact-head RTX 3080 write-tracking tests Both passed, including watched host-import arm
Author-reported lavapipe run without write-watch Both tests skipped with code 77
Raw local and hosted output
Merge preview:
90e2d5e62e07e4f1db4501e8af899187cc027605

Diff check:
(no output; exit status 0)

Convention checker:
All conventions checks passed.

Hosted checks:
conventions pass
labels pass
windows pass
linux skipping
register-context skipping
relinker skipping
relinker-asan skipping
write-watch skipping
eligibility pass
report pass
Author-reported exact-head test output
write tracking tests passed

[write-watch] host imports resolve write protection: no (0 of 4 scratch pages written after a GPU read, 0 after a GPU write, 4 after the import); imported ranges stay watched
Vulkan device: NVIDIA GeForce RTX 3080
Vulkan device: NVIDIA GeForce RTX 3080
host imports stay watched
[src/Texture.cpp:2956 upload] StorageTexture upload submit
[src/Texture.cpp:2958 upload] StorageTexture upload done
repeated neighbour stores over watched memory: ok
repeated neighbour stores over a watched host import: ok

Negative control

Assertion Change Result
Repeated neighbor stores must not cause image write-back to lose GPU-written texels The author ran the added tests on pre-fix commit 9ce5037ccf The author reports the unit assertions failed and the watched-host-import run lost 2,048 of 524,288 GPU-written texels; I did not independently rerun this control

Findings

Blocking

None found in the reviewed test and documentation changes. The updated branch is based on current main, the previously missing exact-head Linux hardware output is now supplied, and the existing CI integration completes its Windows host-test link successfully.

Non-blocking

The Windows workflow skipped CTest after linking the changed host-only test executable, and the Linux and specialized jobs were skipped. The exact GPU assertions were exercised on the author’s RTX 3080 with write-watch and host imports, but those runs are author-reported rather than locally reproduced.

Sources

Not verified

I did not run the C++ tests locally, reproduce the RTX 3080 GPU path, test Windows GPU write-watch behavior, or test console behavior. The Linux lavapipe run and specialized hosted jobs skipped the relevant tests.

To get this to a good state

No code change is needed for this reviewed head. If the head changes, I will rerun the merge, diff, and convention checks and recheck the focused watched-memory tests on the new revision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692175304 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333#pullrequestreview-5692175304). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T02:32:46Z. **Review:** APPROVED --- # Re-checked — new head, looks good I reviewed exact head c0d7a684c82606111b17e721e57d34ec864291d9 against current main 3a2b91981651569163768854a1fcdc7193b6667b; the merge preview is clean, the author’s current-head RTX runs cover both watched-memory arms, and the hosted Windows workflow completed successfully. ## What I ran Environment: Linux x86_64, kernel 6.1.0-54-amd64, Python 3.11.2. I reviewed the four-file test and debt diff and ran: ~~~sh git diff --check upstream/main...refs/remotes/review/10333 python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/10333 git merge-tree --write-tree upstream/main refs/remotes/review/10333 gh pr checks 10333 --repo boykopovar/AnyPS5 ~~~ I did not build or execute the C++ test binaries locally. The Windows workflow linked the changed host-only test executable, but its CMake library build and CTest steps were skipped. The GPU test results below are the author’s exact-head report, not local runs. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | Diff check | Passed | | Conventions | Passed | | Hosted Windows changed host-only test linking | Passed | | Hosted Windows CMake library build and CTest | Skipped | | Hosted Linux and specialized jobs | Skipped | | Author-reported exact-head RTX 3080 write-tracking tests | Both passed, including watched host-import arm | | Author-reported lavapipe run without write-watch | Both tests skipped with code 77 | <details><summary>Raw local and hosted output</summary> ~~~text Merge preview: 90e2d5e62e07e4f1db4501e8af899187cc027605 Diff check: (no output; exit status 0) Convention checker: All conventions checks passed. Hosted checks: conventions pass labels pass windows pass linux skipping register-context skipping relinker skipping relinker-asan skipping write-watch skipping eligibility pass report pass ~~~ </details> <details><summary>Author-reported exact-head test output</summary> ~~~text write tracking tests passed [write-watch] host imports resolve write protection: no (0 of 4 scratch pages written after a GPU read, 0 after a GPU write, 4 after the import); imported ranges stay watched Vulkan device: NVIDIA GeForce RTX 3080 Vulkan device: NVIDIA GeForce RTX 3080 host imports stay watched [src/Texture.cpp:2956 upload] StorageTexture upload submit [src/Texture.cpp:2958 upload] StorageTexture upload done repeated neighbour stores over watched memory: ok repeated neighbour stores over a watched host import: ok ~~~ </details> ## Negative control | Assertion | Change | Result | |---|---|---| | Repeated neighbor stores must not cause image write-back to lose GPU-written texels | The author ran the added tests on pre-fix commit 9ce5037ccfd98026cbe1dc611d9b28100904e746 | The author reports the unit assertions failed and the watched-host-import run lost 2,048 of 524,288 GPU-written texels; I did not independently rerun this control | ## Findings ### Blocking None found in the reviewed test and documentation changes. The updated branch is based on current main, the previously missing exact-head Linux hardware output is now supplied, and the existing CI integration completes its Windows host-test link successfully. ### Non-blocking The Windows workflow skipped CTest after linking the changed host-only test executable, and the Linux and specialized jobs were skipped. The exact GPU assertions were exercised on the author’s RTX 3080 with write-watch and host imports, but those runs are author-reported rather than locally reproduced. ## Sources - [Write-tracking regression assertions at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c0d7a684c82606111b17e721e57d34ec864291d9/core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp#L204-L250) - [GPU write-back regression test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c0d7a684c82606111b17e721e57d34ec864291d9/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L7365-L7480) - [CTest registration at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/c0d7a684c82606111b17e721e57d34ec864291d9/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L1728-L1733) - [Author’s exact-head test report](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6485992250) - [Hosted Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/40803820779/job/123217926037) ## Not verified I did not run the C++ tests locally, reproduce the RTX 3080 GPU path, test Windows GPU write-watch behavior, or test console behavior. The Linux lavapipe run and specialized hosted jobs skipped the relevant tests. ## To get this to a good state No code change is needed for this reviewed head. If the head changes, I will rerun the merge, diff, and convention checks and recheck the focused watched-memory tests on the new revision.
MarcZX10 commented 2026-10-30 07:00:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T07:00:52Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The current head is 12 commits behind main, carries the live needs rebase label, and the previous focused test report is for a different head and an older base; current main has since changed this PR’s test registration and test files.

What I ran

I inspected the current PR diff and GitHub state for head 30983dab5fa308d021116aa7957da48efeb0e978 against base f7f03daf52f11191174b1be089a56e268390a707. Environment: Debian Linux x86_64, GitHub CLI/API; no compiler was used and no build or test was run. I compared the changed-line content with the previously reviewed patch and checked current main’s changes in the PR-touched files.

gh api repos/boykopovar/AnyPS5/pulls/10333 --jq '{state:.state,head:.head.sha,base:.base.sha,mergeable:.mergeable,labels:[.labels[].name]}'
gh api repos/boykopovar/AnyPS5/compare/f7f03daf52f11191174b1be089a56e268390a707...30983dab5fa308d021116aa7957da48efeb0e978 --jq '{status,ahead_by,behind_by,files:[.files[]|{filename,additions,deletions}]}'
gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/3a2b91981651569163768854a1fcdc7193b6667b...c0d7a684c82606111b17e721e57d34ec864291d9 | sed -n '/^[-+]/p' | grep -v -E '^(---|\+\+\+)' | sha256sum
gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/f7f03daf52f11191174b1be089a56e268390a707...30983dab5fa308d021116aa7957da48efeb0e978 | sed -n '/^[-+]/p' | grep -v -E '^(---|\+\+\+)' | sha256sum
gh api repos/boykopovar/AnyPS5/compare/3a2b91981651569163768854a1fcdc7193b6667b...f7f03daf52f11191174b1be089a56e268390a707 --jq '[.files[]|select(.filename=="core/libs/prx/libSceAgcDriver/CMakeLists.txt" or .filename=="core/libs/prx/libSceAgcDriver/tests/Recorder.cpp" or .filename=="core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp")|{filename,additions,deletions}]'

Results

Check Result
Current head and base Open; head 30983dab5fa308d021116aa7957da48efeb0e978, base f7f03daf52f11191174b1be089a56e268390a707; comparison reports 1 commit ahead and 12 behind; needs rebase label is present
Patch content comparison Added/removed line fingerprint matches the previously reviewed patch (d9b914f5b68d6b377df0822db916f04c2f7c9c6d0a9f151939ea05de76e2cf1f); this does not validate integration with current main
Changes on current main since the previous test base CMakeLists.txt +139/-11, Recorder.cpp +354/-5, and WriteTracking.cpp +7/-2; all three are touched by this PR
Hosted checks for current head Eligibility passed; conventions, labels, and report remained pending; Linux and specialized jobs skipped, and Windows remained pending
Local diff/convention checks or tests Not run; the exact current head was inspected through GitHub’s API, not a local checkout
Unedited state and comparison output
{"base":"f7f03daf52f11191174b1be089a56e268390a707","head":"30983dab5fa308d021116aa7957da48efeb0e978","labels":["needs rebase","build","docs","agc"],"mergeable":true,"state":"open"}
{"ahead_by":1,"behind_by":12,"status":"diverged"}
d9b914f5b68d6b377df0822db916f04c2f7c9c6d0a9f151939ea05de76e2cf1f  -
d9b914f5b68d6b377df0822db916f04c2f7c9c6d0a9f151939ea05de76e2cf1f  -
{"additions":139,"deletions":11,"filename":"core/libs/prx/libSceAgcDriver/CMakeLists.txt"}
{"additions":354,"deletions":5,"filename":"core/libs/prx/libSceAgcDriver/tests/Recorder.cpp"}
{"additions":7,"deletions":2,"filename":"core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp"}
gh pr checks 10333 --repo boykopovar/AnyPS5
linux	skipping	0
register-context	skipping	0
relinker	skipping	0
relinker-asan	skipping	0
write-watch	skipping	0
windows	pending	0
eligibility	pass	5s
conventions	pending	0
labels	pending	0
report	pending	0

Findings

Blocking

  • The branch is not up to date with main, contrary to the repository rule, and the stale base changes the same test registration and assertion files this PR touches. The previous report names head c0d7a684c82606111b17e721e57d34ec864291d9 on base 3a2b91981651569163768854a1fcdc7193b6667b; it does not establish the behavior of this current head integrated with main at f7f03daf52f11191174b1be089a56e268390a707. Please rebase onto current main and rerun agc_write_tracking and agc_repeated_neighbour_stores on the resulting tree, including the watched host-import arm where supported.

Non-blocking

None found in the changed test assertions from the patch comparison; their current-main integration remains unverified.

Sources

Not verified

I did not run a local merge preview, diff check, convention check, build, or CTest on head 30983dab5fa308d021116aa7957da48efeb0e978. The focused GPU/write-watch results in the PR description are author-reported for a different head and base; no PS5 behavior was tested here.

To get this to a good state

Rebase onto current main, then rerun the same focused checks—agc_write_tracking and agc_repeated_neighbour_stores, with the watched host-import arm where supported—and update the report with the resulting head and output. I will rerun the relevant source, merge, convention, and test checks on that new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5709067125 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333#pullrequestreview-5709067125). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T07:00:52Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The current head is 12 commits behind `main`, carries the live `needs rebase` label, and the previous focused test report is for a different head and an older base; current `main` has since changed this PR’s test registration and test files. ## What I ran I inspected the current PR diff and GitHub state for head `30983dab5fa308d021116aa7957da48efeb0e978` against base `f7f03daf52f11191174b1be089a56e268390a707`. Environment: Debian Linux x86_64, GitHub CLI/API; no compiler was used and no build or test was run. I compared the changed-line content with the previously reviewed patch and checked current `main`’s changes in the PR-touched files. ```sh gh api repos/boykopovar/AnyPS5/pulls/10333 --jq '{state:.state,head:.head.sha,base:.base.sha,mergeable:.mergeable,labels:[.labels[].name]}' gh api repos/boykopovar/AnyPS5/compare/f7f03daf52f11191174b1be089a56e268390a707...30983dab5fa308d021116aa7957da48efeb0e978 --jq '{status,ahead_by,behind_by,files:[.files[]|{filename,additions,deletions}]}' gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/3a2b91981651569163768854a1fcdc7193b6667b...c0d7a684c82606111b17e721e57d34ec864291d9 | sed -n '/^[-+]/p' | grep -v -E '^(---|\+\+\+)' | sha256sum gh api -H 'Accept: application/vnd.github.patch' repos/boykopovar/AnyPS5/compare/f7f03daf52f11191174b1be089a56e268390a707...30983dab5fa308d021116aa7957da48efeb0e978 | sed -n '/^[-+]/p' | grep -v -E '^(---|\+\+\+)' | sha256sum gh api repos/boykopovar/AnyPS5/compare/3a2b91981651569163768854a1fcdc7193b6667b...f7f03daf52f11191174b1be089a56e268390a707 --jq '[.files[]|select(.filename=="core/libs/prx/libSceAgcDriver/CMakeLists.txt" or .filename=="core/libs/prx/libSceAgcDriver/tests/Recorder.cpp" or .filename=="core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp")|{filename,additions,deletions}]' ``` ## Results | Check | Result | |---|---| | Current head and base | Open; head `30983dab5fa308d021116aa7957da48efeb0e978`, base `f7f03daf52f11191174b1be089a56e268390a707`; comparison reports 1 commit ahead and 12 behind; `needs rebase` label is present | | Patch content comparison | Added/removed line fingerprint matches the previously reviewed patch (`d9b914f5b68d6b377df0822db916f04c2f7c9c6d0a9f151939ea05de76e2cf1f`); this does not validate integration with current `main` | | Changes on current `main` since the previous test base | `CMakeLists.txt` +139/-11, `Recorder.cpp` +354/-5, and `WriteTracking.cpp` +7/-2; all three are touched by this PR | | Hosted checks for current head | Eligibility passed; conventions, labels, and report remained pending; Linux and specialized jobs skipped, and Windows remained pending | | Local diff/convention checks or tests | Not run; the exact current head was inspected through GitHub’s API, not a local checkout | <details> <summary>Unedited state and comparison output</summary> ```text {"base":"f7f03daf52f11191174b1be089a56e268390a707","head":"30983dab5fa308d021116aa7957da48efeb0e978","labels":["needs rebase","build","docs","agc"],"mergeable":true,"state":"open"} {"ahead_by":1,"behind_by":12,"status":"diverged"} d9b914f5b68d6b377df0822db916f04c2f7c9c6d0a9f151939ea05de76e2cf1f - d9b914f5b68d6b377df0822db916f04c2f7c9c6d0a9f151939ea05de76e2cf1f - {"additions":139,"deletions":11,"filename":"core/libs/prx/libSceAgcDriver/CMakeLists.txt"} {"additions":354,"deletions":5,"filename":"core/libs/prx/libSceAgcDriver/tests/Recorder.cpp"} {"additions":7,"deletions":2,"filename":"core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp"} gh pr checks 10333 --repo boykopovar/AnyPS5 linux skipping 0 register-context skipping 0 relinker skipping 0 relinker-asan skipping 0 write-watch skipping 0 windows pending 0 eligibility pass 5s conventions pending 0 labels pending 0 report pending 0 ``` </details> ## Findings ### Blocking - The branch is not up to date with `main`, contrary to the repository rule, and the stale base changes the same test registration and assertion files this PR touches. The previous report names head `c0d7a684c82606111b17e721e57d34ec864291d9` on base `3a2b91981651569163768854a1fcdc7193b6667b`; it does not establish the behavior of this current head integrated with `main` at `f7f03daf52f11191174b1be089a56e268390a707`. Please rebase onto current `main` and rerun `agc_write_tracking` and `agc_repeated_neighbour_stores` on the resulting tree, including the watched host-import arm where supported. ### Non-blocking None found in the changed test assertions from the patch comparison; their current-main integration remains unverified. ## Sources - [Current PR head](https://github.com/boykopovar/AnyPS5/commit/30983dab5fa308d021116aa7957da48efeb0e978) - [Current base](https://github.com/boykopovar/AnyPS5/commit/f7f03daf52f11191174b1be089a56e268390a707) - [Branch freshness rule in CONTRIBUTING.md](https://github.com/boykopovar/AnyPS5/blob/f7f03daf52f11191174b1be089a56e268390a707/CONTRIBUTING.md#L60) - [Previous exact-head test report](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6485992250) ## Not verified I did not run a local merge preview, diff check, convention check, build, or CTest on head `30983dab5fa308d021116aa7957da48efeb0e978`. The focused GPU/write-watch results in the PR description are author-reported for a different head and base; no PS5 behavior was tested here. ## To get this to a good state Rebase onto current `main`, then rerun the same focused checks—`agc_write_tracking` and `agc_repeated_neighbour_stores`, with the watched host-import arm where supported—and update the report with the resulting head and output. I will rerun the relevant source, merge, convention, and test checks on that new head.
MarcZX10 commented 2026-10-30 07:56:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T07:56:40Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

I withdraw the rebase finding: the PR's current merge preview is clean, and main changes since its merge base do not touch the PR's changed paths; paired AGC validation evidence is still missing.

What I ran

Reviewed exact head 30983dab5fa308d021116aa7957da48efeb0e978 against current main f7f03daf52f11191174b1be089a56e268390a707. Environment: Linux x86_64, Git 2.39.5. No build or CTest was run locally.

git merge-tree --write-tree refs/remotes/upstream/main refs/review/upstream-10333
git diff --check refs/remotes/upstream/main...refs/review/upstream-10333
git diff --name-only 47cdccde40bca36c1203ec498d9ff47f23bc6537..refs/remotes/upstream/main -- \
  core/libs/prx/libSceAgcDriver/CMakeLists.txt \
  core/libs/prx/libSceAgcDriver/tests/Recorder.cpp \
  core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp \
  core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/upstream-10333

Results

Check Result
Current-main merge preview Clean; tree 112b322cb7be783a83c2582dd4ef8a75c926f5d9.
git diff --check Pass; no output.
Current-main changes to the PR's code/test paths since merge base None.
Repository conventions Pass.
Focused RTX 3080 tests Author-reported pass on this exact head; not run locally.
Hosted checks Windows, conventions, labels, eligibility, and report pass; product and specialized jobs are skipped.
Unedited local output
$ git merge-tree --write-tree refs/remotes/upstream/main refs/review/upstream-10333
112b322cb7be783a83c2582dd4ef8a75c926f5d9

$ git diff --check refs/remotes/upstream/main...refs/review/upstream-10333
(no output; exit status 0)

$ git diff --name-only 47cdccde40bca36c1203ec498d9ff47f23bc6537..refs/remotes/upstream/main -- [four PR-touched paths]
(no output)

$ python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/upstream-10333
All conventions checks passed.

Findings

Blocking

The PR description reports the focused tests only on the change. The repository requires the same AGC tests on main and the change, on the same machine and GPU, with VK_LAYER_KHRONOS_validation enabled and new VUID- messages compared. Please add the paired run and its output. I am not requesting a rebase based on the current merge and touched-path checks.

Non-blocking

None.

Sources

Not verified

I did not build or run CTest, use write-watch locally, or run GPU validation. The focused test results are author-reported.

To get this to a good state

Run agc_write_tracking and agc_repeated_neighbour_stores on both current main and this head on the same RTX 3080 machine with the required validation environment, then report the loaded-layer check and VUID comparison. I will rerun the no-build checks and compare the resulting evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5709526785 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10333#pullrequestreview-5709526785). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T07:56:40Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested I withdraw the rebase finding: the PR's current merge preview is clean, and `main` changes since its merge base do not touch the PR's changed paths; paired AGC validation evidence is still missing. ## What I ran Reviewed exact head `30983dab5fa308d021116aa7957da48efeb0e978` against current `main` `f7f03daf52f11191174b1be089a56e268390a707`. Environment: Linux x86_64, Git 2.39.5. No build or CTest was run locally. ```sh git merge-tree --write-tree refs/remotes/upstream/main refs/review/upstream-10333 git diff --check refs/remotes/upstream/main...refs/review/upstream-10333 git diff --name-only 47cdccde40bca36c1203ec498d9ff47f23bc6537..refs/remotes/upstream/main -- \ core/libs/prx/libSceAgcDriver/CMakeLists.txt \ core/libs/prx/libSceAgcDriver/tests/Recorder.cpp \ core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp \ core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/upstream-10333 ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `112b322cb7be783a83c2582dd4ef8a75c926f5d9`. | | `git diff --check` | Pass; no output. | | Current-main changes to the PR's code/test paths since merge base | None. | | Repository conventions | Pass. | | Focused RTX 3080 tests | Author-reported pass on this exact head; not run locally. | | Hosted checks | Windows, conventions, labels, eligibility, and report pass; product and specialized jobs are skipped. | <details> <summary>Unedited local output</summary> ```text $ git merge-tree --write-tree refs/remotes/upstream/main refs/review/upstream-10333 112b322cb7be783a83c2582dd4ef8a75c926f5d9 $ git diff --check refs/remotes/upstream/main...refs/review/upstream-10333 (no output; exit status 0) $ git diff --name-only 47cdccde40bca36c1203ec498d9ff47f23bc6537..refs/remotes/upstream/main -- [four PR-touched paths] (no output) $ python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/upstream-10333 All conventions checks passed. ``` </details> ## Findings ### Blocking The PR description reports the focused tests only on the change. The repository requires the same AGC tests on `main` and the change, on the same machine and GPU, with `VK_LAYER_KHRONOS_validation` enabled and new `VUID-` messages compared. Please add the paired run and its output. I am not requesting a rebase based on the current merge and touched-path checks. ### Non-blocking None. ## Sources - [AGC paired-validation rule at current `main`](https://github.com/boykopovar/AnyPS5/blob/f7f03daf52f11191174b1be089a56e268390a707/CONTRIBUTING.md#L72-L73) - [Author's exact-head test report](https://github.com/boykopovar/AnyPS5/pull/10333#issuecomment-6517063763) ## Not verified I did not build or run CTest, use write-watch locally, or run GPU validation. The focused test results are author-reported. ## To get this to a good state Run `agc_write_tracking` and `agc_repeated_neighbour_stores` on both current `main` and this head on the same RTX 3080 machine with the required validation environment, then report the loaded-layer check and VUID comparison. I will rerun the no-build checks and compare the resulting evidence.
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!10333
No description provided.