fix(agc): restore write-watch coverage for remapped pages #6759

Merged
Zenodeon merged 2 commits from upstream-pr/6759 into main 2026-10-20 18:02:08 +00:00
Zenodeon commented 2026-10-16 09:57:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zenodeon on 2026-10-16T09:57:51Z.


What

Restore CPU-write tracking when fresh private backing replaces complete pages inside an imported 64 KiB block. For example, a new 16 KiB allocation inside a previously excluded block currently remains classified as unwatched, even though its private backing supports write tracking.

Represent exclusions as a mask of 4 KiB pages. Restore only fully remapped pages with a newer mapping generation, preserving excluded neighbors and ignoring stale mapping notifications. Require whole-block coverage before using block-level write hints, and clear stale hints when private backing is mapped.

This is a standalone resource-lifecycle correctness fix. It contains only the coverage implementation, its GuestMemory integration, a portable coverage regression and a Windows mapping-callback regression. It does not include residency, shader experiments, input configuration, diagnostics or changes from #6718. No rendering or FPS improvement is claimed for this PR.

Coverage metadata grows by one byte per 64 KiB arena block: approximately 15.6 MiB for the existing 1000 GiB reserved arena. Exclusion-generation entries remain sparse.

Related work was rechecked. #6701 changes write-tracking stamp allocation and shares the hint-handling area, but does not implement page-level exclusion restoration; integrating both may require a rebase. #6455 stamps watched portions of CPU stores; #6308/#4448/#6678 change import/unwatch handling. None is a prerequisite for this repair.

Tested

Rebase validation — 2026-10-20. Rebased onto upstream main 661f8b717. Current head: 823c6a55e148aeaa1e2444eb37a0d324ce0b78c5; original authorship is retained. The sparse write tracker uses hintOf/stampHint; the remap callback now clears an existing leaf's hint without allocating a missing leaf, preserving driverPieces.dropped invalidation and whole-block coverage checks.

Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2 / Release / SPIR-V Tools. Fresh focused targets rebuilt for main and the PR. Main: 10/10 pass, zero skips, 11.98 s. PR: 11/11 pass, zero skips, 11.19 s, including the real Windows agc_partial_watch_restoration callback regression. Both use ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and the same GPU. Loader logs confirm the Khronos 1.4.304 layer actually loads; neither log reports a missing requested layer. No new VUID errors compared with main. Both include the same VUID-VkDeviceCreateInfo-pNext-pNext for an extension structure unknown to that older validation layer; zero total VUIDs is not claimed.

Old DLL copies beside the test executables were moved aside before these final runs so the tests load the rebuilt unpatched libraries. Conventions against canonical upstream/main and diff checks pass. The required origin/main check was attempted but its stale fork baseline hits Windows command-line length limits; the canonical target baseline succeeds. No new gameplay/performance claim, raw-trace upload, or Linux/vendor validation is implied by this rebase.

Previous rebase validation — 2026-10-19 (historical). Rebased onto upstream main 6b8228b2bfecb895010e379362c6d0bb288c2d47. Current head: 79c6c4fd27438ee1f9ae444b5433f4e86599a04e. Original authorship is retained.

The private-remap callback now combines stale-hint clearing with upstream’s newer driverPieces.dropped invalidation. It does not restore the older erase operation over the new write-history bookkeeping. The portable coverage and real Windows reset/commit callback regressions remain intact. This PR remains standalone, with no #6718, residency or shader changes.

  • Windows RTX 4070: 21/21 focused tests pass, zero skips, 18.66 s summed test time; longest 9.75 s.
  • Ubuntu/WSL2 lavapipe: 19/19 focused tests pass, zero skips, 6.73 s summed test time; longest 4.80 s.
  • Release / GCC 15.2 / SPIR-V Tools; current bundled dependency gitlinks. Every individual test stays within 30 seconds. Conventions against canonical upstream and diff checks pass. WSL/lavapipe is software-Vulkan coverage, not a native Linux vendor-driver retest.
  • These are fresh source-correctness results, not new gameplay or performance measurements. Earlier game measurements and independent hardware reports below apply to their explicitly named pre-rebase revisions. No game/runtime snapshot, evidence bundle or PR status is changed by this rebase.

Earlier validation and investigation (historical revisions):

Previous review-update head: 30e0ab992c80d35957dcb9532d484671caf4f0d5, rebased onto upstream c0a7468f6f666a46b1c3e2fb14bb651fed05afc5. Standalone: no #6718 memo repair, selected-import, residency or shader changes are included.

The previously missing Windows callback coverage is now exercised directly. New test agc_partial_watch_restoration allocates separate 16 KiB private backing granules, excludes their containing 64 KiB block, remaps one 16 KiB range through the real GuestArena reset/commit path, and checks:

  • Restored pages regain write tracking while excluded prefixes/suffixes remain excluded.
  • Stale driver hints clear after remapping.
  • Real CPU writes are collected and invalidate the earlier generation.
  • Re-excluding a partly watched block cannot invent a complete write-history hint.

With only the production GuestMemory implementation and coverage header replaced by current unpatched upstream, that same test fails with a partial private remap did not restore its write watch. The repaired source passes.

Fresh standalone Windows validation: 21/21 pass, zero skips, 16.36 s total; longest individual test 7.16 s. GCC 15.2.0, Release, SPIR-V Tools enabled, Windows 11 10.0.26200, RTX 4070 / driver 591.86. This includes the callback regression, portable coverage, imports/unmap/retirement, CPU snapshots/write-back, aliasing, clears, graphics and both pixel regressions. Every test has a 30-second timeout. Conventions and diff checks pass.

Linux helper-only validation: Ubuntu 26.04.1 under WSL 2, kernel 6.18.54.1, GCC 15.2. The current helper test fails with the pre-repair header at a partial replacement did not restore its complete pages; it passes with the repaired header, both normally and with AddressSanitizer + UBSan. This supplements the independent helper oracle reported in the review; Linux does not exercise the Windows-only callback, and no Linux GPU/title validation is claimed.

No new rendering, FPS, game stability or cross-title claim. The working game runtime and local controls are unchanged; evidence remains local. The following integration results are historical and retain their original limitations.

  • Windows 10.0.26200, Intel Core i7-13700, 32 GiB RAM, NVIDIA RTX 4070 12 GiB, driver 591.86; GCC 15.2.0, Ninja, Release -O3 -DNDEBUG, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON.
  • Historical publication validation was based on upstream 332b0b1b7. The synthetic regression fails against that revision before the repair with a fresh partial-block private mapping stayed excluded, and passes after it.
  • Rebuilt and froze the complete Release runtime, all 126 patched libraries, with commit/flags/SHA-256 manifests kept locally. 17/17 focused tests pass in 15.47 seconds after the rebase; every test has a 30-second timeout. Conventions and diff checks pass.
  • Coverage checks complete-page subranges, partial boundaries, adjacent ranges, stale generations, repeated imports and the terminal arena page. The focused suite also covers CPU snapshots/write-back, aliasing, clears, allocation retirement, graphics semantics and both pixel regressions.
  • Separate integration with #1191 reproduces failures in agc_driver_pixel_ancillary_word and agc_driver_pixel_fixed_point_position with residency enabled before this repair; both pass afterward. Source-only integration passes 18/18 focused tests with residency off and on. Residency remains separately attributed and is excluded from this PR.
  • SuperTuxKart PPSA69421, separate playable integration: captured Abyss scenery remains visible; automated one-lap races exit naturally with code 0 both with residency off and on. A 930-second autonomous run continues without matched fatal/device-loss signatures. Screenshot coverage stops at 564.5 seconds for an undetermined reason, and memory growth is not proven bounded; full-duration visual stability remains unverified.
  • vkQuake produces no captured frames before the 40-second limit in either arm; cross-title startup is inconclusive. Other GPU vendors are not tested; the new Linux helper-only results are reported above.
  • The separate playable integration includes TheAggie's shader experiment and retains its known v_interp_mov p10/p20 flat-interpolation semantic-test failure. That patch is excluded here; this PR's clean-source graphics test passes. No guard was weakened.

Keeping this PR in draft for maintainer feedback and remaining cross-title/stability coverage. Integration gameplay checks above used the earlier tested repair revision on 5d9dcc42d; the current-main rebase was rebuilt and tested separately. No fresh manual controls/audio confirmation is claimed.

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 claimed; #1191 supplied integration regressions; SuperTuxKart PPSA69421 is a historical regression workload
  • GPUs tested: NVIDIA RTX 4070, driver 591.86, Windows 11 10.0.26200; Linux checks are CPU-only portable helper tests
  • AI-assisted: yes, OpenAI Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4886653504 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6759). Originally posted by [Zenodeon](https://github.com/Zenodeon) on 2026-10-16T09:57:51Z. --- ### What Restore CPU-write tracking when fresh private backing replaces complete pages inside an imported 64 KiB block. For example, a new 16 KiB allocation inside a previously excluded block currently remains classified as unwatched, even though its private backing supports write tracking. Represent exclusions as a mask of 4 KiB pages. Restore only fully remapped pages with a newer mapping generation, preserving excluded neighbors and ignoring stale mapping notifications. Require whole-block coverage before using block-level write hints, and clear stale hints when private backing is mapped. This is a standalone resource-lifecycle correctness fix. It contains only the coverage implementation, its GuestMemory integration, a portable coverage regression and a Windows mapping-callback regression. It does not include residency, shader experiments, input configuration, diagnostics or changes from #6718. No rendering or FPS improvement is claimed for this PR. Coverage metadata grows by one byte per 64 KiB arena block: approximately 15.6 MiB for the existing 1000 GiB reserved arena. Exclusion-generation entries remain sparse. Related work was rechecked. #6701 changes write-tracking stamp allocation and shares the hint-handling area, but does not implement page-level exclusion restoration; integrating both may require a rebase. #6455 stamps watched portions of CPU stores; #6308/#4448/#6678 change import/unwatch handling. None is a prerequisite for this repair. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> **Rebase validation — 2026-10-20.** Rebased onto upstream `main` `661f8b717`. Current head: `823c6a55e148aeaa1e2444eb37a0d324ce0b78c5`; original authorship is retained. The sparse write tracker uses `hintOf`/`stampHint`; the remap callback now clears an existing leaf's hint without allocating a missing leaf, preserving `driverPieces.dropped` invalidation and whole-block coverage checks. Windows 11 build 26200, Intel Core i7-13700, NVIDIA GeForce RTX 4070 / driver 610.88, GCC 15.2 / Release / SPIR-V Tools. Fresh focused targets rebuilt for main and the PR. Main: **10/10 pass, zero skips, 11.98 s**. PR: **11/11 pass, zero skips, 11.19 s**, including the real Windows `agc_partial_watch_restoration` callback regression. Both use `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and the same GPU. Loader logs confirm the Khronos 1.4.304 layer actually loads; neither log reports a missing requested layer. **No new VUID errors compared with main**. Both include the same `VUID-VkDeviceCreateInfo-pNext-pNext` for an extension structure unknown to that older validation layer; zero total VUIDs is not claimed. Old DLL copies beside the test executables were moved aside before these final runs so the tests load the rebuilt unpatched libraries. Conventions against canonical `upstream/main` and diff checks pass. The required `origin/main` check was attempted but its stale fork baseline hits Windows command-line length limits; the canonical target baseline succeeds. No new gameplay/performance claim, raw-trace upload, or Linux/vendor validation is implied by this rebase. **Previous rebase validation — 2026-10-19 (historical).** Rebased onto upstream `main` `6b8228b2bfecb895010e379362c6d0bb288c2d47`. Current head: `79c6c4fd27438ee1f9ae444b5433f4e86599a04e`. Original authorship is retained. The private-remap callback now combines stale-hint clearing with upstream’s newer `driverPieces.dropped` invalidation. It does not restore the older erase operation over the new write-history bookkeeping. The portable coverage and real Windows reset/commit callback regressions remain intact. This PR remains standalone, with no #6718, residency or shader changes. - **Windows RTX 4070: 21/21 focused tests pass, zero skips**, 18.66 s summed test time; longest 9.75 s. - **Ubuntu/WSL2 lavapipe: 19/19 focused tests pass, zero skips**, 6.73 s summed test time; longest 4.80 s. - Release / GCC 15.2 / SPIR-V Tools; current bundled dependency gitlinks. Every individual test stays within 30 seconds. Conventions against canonical upstream and diff checks pass. WSL/lavapipe is software-Vulkan coverage, not a native Linux vendor-driver retest. - These are fresh source-correctness results, not new gameplay or performance measurements. Earlier game measurements and independent hardware reports below apply to their explicitly named pre-rebase revisions. No game/runtime snapshot, evidence bundle or PR status is changed by this rebase. **Earlier validation and investigation (historical revisions):** Previous review-update head: `30e0ab992c80d35957dcb9532d484671caf4f0d5`, rebased onto upstream `c0a7468f6f666a46b1c3e2fb14bb651fed05afc5`. Standalone: no #6718 memo repair, selected-import, residency or shader changes are included. **The previously missing Windows callback coverage is now exercised directly.** New test `agc_partial_watch_restoration` allocates separate 16 KiB private backing granules, excludes their containing 64 KiB block, remaps one 16 KiB range through the real GuestArena reset/commit path, and checks: - Restored pages regain write tracking while excluded prefixes/suffixes remain excluded. - Stale driver hints clear after remapping. - Real CPU writes are collected and invalidate the earlier generation. - Re-excluding a partly watched block cannot invent a complete write-history hint. With only the production GuestMemory implementation and coverage header replaced by current unpatched upstream, that same test fails with `a partial private remap did not restore its write watch`. The repaired source passes. **Fresh standalone Windows validation: 21/21 pass, zero skips, 16.36 s total; longest individual test 7.16 s.** GCC 15.2.0, Release, SPIR-V Tools enabled, Windows 11 10.0.26200, RTX 4070 / driver 591.86. This includes the callback regression, portable coverage, imports/unmap/retirement, CPU snapshots/write-back, aliasing, clears, graphics and both pixel regressions. Every test has a 30-second timeout. Conventions and diff checks pass. **Linux helper-only validation:** Ubuntu 26.04.1 under WSL 2, kernel 6.18.54.1, GCC 15.2. The current helper test fails with the pre-repair header at `a partial replacement did not restore its complete pages`; it passes with the repaired header, both normally and with AddressSanitizer + UBSan. This supplements the independent helper oracle reported in the review; Linux does not exercise the Windows-only callback, and no Linux GPU/title validation is claimed. No new rendering, FPS, game stability or cross-title claim. The working game runtime and local controls are unchanged; evidence remains local. The following integration results are historical and retain their original limitations. - Windows 10.0.26200, Intel Core i7-13700, 32 GiB RAM, NVIDIA RTX 4070 12 GiB, driver 591.86; GCC 15.2.0, Ninja, Release `-O3 -DNDEBUG`, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`. - Historical publication validation was based on upstream `332b0b1b7`. The synthetic regression fails against that revision before the repair with `a fresh partial-block private mapping stayed excluded`, and passes after it. - Rebuilt and froze the complete Release runtime, all 126 patched libraries, with commit/flags/SHA-256 manifests kept locally. **17/17 focused tests pass in 15.47 seconds** after the rebase; every test has a 30-second timeout. Conventions and diff checks pass. - Coverage checks complete-page subranges, partial boundaries, adjacent ranges, stale generations, repeated imports and the terminal arena page. The focused suite also covers CPU snapshots/write-back, aliasing, clears, allocation retirement, graphics semantics and both pixel regressions. - Separate integration with #1191 reproduces failures in `agc_driver_pixel_ancillary_word` and `agc_driver_pixel_fixed_point_position` with residency enabled before this repair; both pass afterward. Source-only integration passes 18/18 focused tests with residency off and on. Residency remains separately attributed and is excluded from this PR. - SuperTuxKart **PPSA69421**, separate playable integration: captured Abyss scenery remains visible; automated one-lap races exit naturally with code 0 both with residency off and on. A 930-second autonomous run continues without matched fatal/device-loss signatures. Screenshot coverage stops at 564.5 seconds for an undetermined reason, and memory growth is not proven bounded; full-duration visual stability remains unverified. - vkQuake produces no captured frames before the 40-second limit in either arm; cross-title startup is inconclusive. Other GPU vendors are not tested; the new Linux helper-only results are reported above. - The separate playable integration includes TheAggie's shader experiment and retains its known `v_interp_mov p10/p20` flat-interpolation semantic-test failure. That patch is excluded here; this PR's clean-source graphics test passes. No guard was weakened. Keeping this PR in draft for maintainer feedback and remaining cross-title/stability coverage. Integration gameplay checks above used the earlier tested repair revision on `5d9dcc42d`; the current-main rebase was rebuilt and tested separately. No fresh manual controls/audio confirmation is claimed. ### 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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none claimed; #1191 supplied integration regressions; SuperTuxKart PPSA69421 is a historical regression workload <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: NVIDIA RTX 4070, driver 591.86, Windows 11 10.0.26200; Linux checks are CPU-only portable helper tests <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes, OpenAI Codex <!-- yes / no -->
simonbbby commented 2026-10-16 10:23:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-16T10:23:40Z.


Independent native Linux check of the portable coverage helper, exact head 6aac39219570c674c66d64f9eefbcd7f3b112fef. Ubuntu 24.04, kernel 7.0.0-38, GCC 13.3, Ryzen 9 9950X; CPU only.

Compiled the unchanged WriteWatchCoverage.cpp test directly against the PR header: passes. With only the production header from HEAD^, it fails with a partial replacement did not restore its complete pages.

A separate oracle uses a boolean per 4 KiB page, a generation per 64 KiB exclusion block, and linear interval-intersection/containment checks, rather than the implementation's bit masks. Across five seeds it agrees with the actual PR header for 240,000 Exclude/Restore operations and 8,730,000 Covers queries. Arenas include empty, 17-byte, page/block boundary sizes and a three-block-plus-17-byte tail. It checks mutation return values as well as coverage, with aligned/unaligned and clipped ranges, re-exclusion, equal/older/newer generations, every page, two-byte boundary crossings, random spans and whole-arena queries.

Discriminating controls, using seed 1:

  • Accept equal-generation restores (< changed to <=): oracle fails.
  • Round an incomplete first page down instead of up: oracle fails.
  • Clear the whole block on partial restoration: oracle fails on an excluded neighbor.
  • Exact PR header under AddressSanitizer + UBSan: another 48,000 operations / 1,746,000 queries pass, no diagnostics.

This supports both sides of the repair: complete remapped pages regain coverage while incomplete pages, excluded neighbors and newer exclusions remain protected. Repository worktree is clean; the probes and mutated headers are separate scratch files.

Limits: helper-level validation only. watchPrivateMapping in the edited GuestMemory.cpp is under _WIN32, so this does not exercise its hint clearing or mapping callback on Linux. No Windows runtime, import/GPU integration, SuperTuxKart/title replay, rendering or performance claim.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6213395168 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6759#issuecomment-6213395168). Originally posted by [simonbbby](https://github.com/simonbbby) on 2026-10-16T10:23:40Z. --- Independent native Linux check of the **portable coverage helper**, exact head `6aac39219570c674c66d64f9eefbcd7f3b112fef`. Ubuntu 24.04, kernel 7.0.0-38, GCC 13.3, Ryzen 9 9950X; CPU only. Compiled the unchanged `WriteWatchCoverage.cpp` test directly against the PR header: passes. With only the production header from `HEAD^`, it fails with `a partial replacement did not restore its complete pages`. A separate oracle uses a boolean per 4 KiB page, a generation per 64 KiB exclusion block, and linear interval-intersection/containment checks, rather than the implementation's bit masks. Across five seeds it agrees with the actual PR header for **240,000 Exclude/Restore operations and 8,730,000 Covers queries**. Arenas include empty, 17-byte, page/block boundary sizes and a three-block-plus-17-byte tail. It checks mutation return values as well as coverage, with aligned/unaligned and clipped ranges, re-exclusion, equal/older/newer generations, every page, two-byte boundary crossings, random spans and whole-arena queries. Discriminating controls, using seed 1: - Accept equal-generation restores (`<` changed to `<=`): oracle fails. - Round an incomplete first page down instead of up: oracle fails. - Clear the whole block on partial restoration: oracle fails on an excluded neighbor. - Exact PR header under AddressSanitizer + UBSan: another 48,000 operations / 1,746,000 queries pass, no diagnostics. This supports both sides of the repair: complete remapped pages regain coverage while incomplete pages, excluded neighbors and newer exclusions remain protected. Repository worktree is clean; the probes and mutated headers are separate scratch files. **Limits:** helper-level validation only. `watchPrivateMapping` in the edited `GuestMemory.cpp` is under `_WIN32`, so this does not exercise its hint clearing or mapping callback on Linux. No Windows runtime, import/GPU integration, SuperTuxKart/title replay, rendering or performance claim.
github-actions[bot] commented 2026-10-16 10:24:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T10:24:26Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6273 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6682 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6926 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6971 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7002 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7446 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7464 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7644 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8206 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6213408895 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6759#issuecomment-6213408895). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T10:24:26Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6926](https://www.github.com/boykopovar/AnyPS5/pull/6926) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7464](https://www.github.com/boykopovar/AnyPS5/pull/7464) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7644](https://www.github.com/boykopovar/AnyPS5/pull/7644) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8206](https://www.github.com/boykopovar/AnyPS5/pull/8206) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` |
Zenodeon commented 2026-10-17 21:55:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zenodeon on 2026-10-17T21:55:52Z.


Thanks for the independent helper validation and for identifying the remaining Windows integration gap. Updated head 30e0ab992 is rebased onto c0a7468f6 and adds agc_partial_watch_restoration, which exercises the real GuestArena reset/commit callback on Windows.

The test excludes a 64 KiB block, remaps a 16 KiB private allocation inside it, and checks restored coverage, excluded neighbors, stale-hint clearing and visibility of genuine CPU writes. It also verifies that re-excluding a partly watched block cannot invent a complete write-history hint.

With current unpatched upstream production code, the same test fails at a partial private remap did not restore its write watch. With the repair, 21/21 focused Windows tests pass, zero skips, 16.36 s total, including the callback, import retirement, write-back, aliasing, clears and both pixel regressions. GCC 15.2 / Release / SPIR-V Tools; Windows 11 10.0.26200, RTX 4070, driver 591.86. Every test finishes within 30 s; conventions and diff checks pass.

I also reran the portable helper on Ubuntu 26.04.1/WSL 2 with GCC 15.2: the pre-repair header fails, while the repaired header passes normally and under AddressSanitizer + UBSan. Those Linux runs remain helper-only; the Windows callback is tested separately above.

The PR remains standalone and in draft. No #6718, residency or shader changes, new gameplay-performance claim, or evidence-bundle upload. Existing cross-title/stability limitations remain documented. AI-assisted implementation and validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241825230 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6759#issuecomment-6241825230). Originally posted by [Zenodeon](https://github.com/Zenodeon) on 2026-10-17T21:55:52Z. --- Thanks for the independent helper validation and for identifying the remaining Windows integration gap. Updated head `30e0ab992` is rebased onto `c0a7468f6` and adds `agc_partial_watch_restoration`, which exercises the real GuestArena reset/commit callback on Windows. The test excludes a 64 KiB block, remaps a 16 KiB private allocation inside it, and checks restored coverage, excluded neighbors, stale-hint clearing and visibility of genuine CPU writes. It also verifies that re-excluding a partly watched block cannot invent a complete write-history hint. With current unpatched upstream production code, the same test fails at `a partial private remap did not restore its write watch`. With the repair, **21/21 focused Windows tests pass, zero skips, 16.36 s total**, including the callback, import retirement, write-back, aliasing, clears and both pixel regressions. GCC 15.2 / Release / SPIR-V Tools; Windows 11 10.0.26200, RTX 4070, driver 591.86. Every test finishes within 30 s; conventions and diff checks pass. I also reran the portable helper on Ubuntu 26.04.1/WSL 2 with GCC 15.2: the pre-repair header fails, while the repaired header passes normally and under AddressSanitizer + UBSan. Those Linux runs remain helper-only; the Windows callback is tested separately above. The PR remains standalone and in draft. No #6718, residency or shader changes, new gameplay-performance claim, or evidence-bundle upload. Existing cross-title/stability limitations remain documented. AI-assisted implementation and validation.
adriadam10 commented 2026-10-20 08:36:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T08:36:30Z.

Review: CHANGES_REQUESTED


This now conflicts with main in a way that needs your adaptation, not a mechanical rebase:

  • GuestMemory.cpp WriteTracker::hinted: main reads hints through hintOf(block) (sparse Leaf::hintBlocks, #7788 area). Keep hintOf(block) == 0 || !coverage.Covers(...) semantics but with your whole-block Covers(blockBegin(block), min(WriteBlockBytes, base + size - blockBegin(block))).
  • startHints calls stampHint(block) on main; keep your whole-block Covers check there.
  • watchPrivateMapping: tracker.hintBlocks[block] = 0 no longer exists. Clear the hint through the leaf (without allocating one if it is absent), next to the existing driverPieces.dropped update.

The mask/Covers logic and both tests looked right on the previous head; once rebased the Windows job of the merge queue will be the gate for this _WIN32 code, so please make sure agc_partial_watch_restoration still passes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5582677487 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6759#pullrequestreview-5582677487). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T08:36:30Z. **Review:** CHANGES_REQUESTED --- This now conflicts with `main` in a way that needs your adaptation, not a mechanical rebase: - `GuestMemory.cpp` `WriteTracker::hinted`: main reads hints through `hintOf(block)` (sparse `Leaf::hintBlocks`, #7788 area). Keep `hintOf(block) == 0 || !coverage.Covers(...)` semantics but with your whole-block `Covers(blockBegin(block), min(WriteBlockBytes, base + size - blockBegin(block)))`. - `startHints` calls `stampHint(block)` on main; keep your whole-block `Covers` check there. - `watchPrivateMapping`: `tracker.hintBlocks[block] = 0` no longer exists. Clear the hint through the leaf (without allocating one if it is absent), next to the existing `driverPieces.dropped` update. The mask/`Covers` logic and both tests looked right on the previous head; once rebased the Windows job of the merge queue will be the gate for this `_WIN32` code, so please make sure `agc_partial_watch_restoration` still passes.
Zenodeon commented 2026-10-20 09:16:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zenodeon on 2026-10-20T09:16:24Z.


@adriadam10 Addressed in the rebased head 823c6a55e148aeaa1e2444eb37a0d324ce0b78c5, based on main 661f8b717.

  • hinted reads through hintOf(block) and uses whole-block coverage; startHints retains stampHint(block) with the whole-block coverage check.
  • watchPrivateMapping clears the hint only when its sparse leaf already exists, without allocating a missing leaf, beside the preserved driverPieces.dropped update.
  • The page masks, stale-generation handling and regression assertions remain intact.

Fresh Windows validation on the same RTX 4070 (driver 610.88), Windows 11 build 26200, GCC 15.2 Release: main passes 10/10 focused tests; this head passes 11/11, zero skips, including agc_partial_watch_restoration through the actual reset/commit callback. Required Vulkan validation and disabled shader caching were enabled on both builds, and loader logs confirm the validation layer loaded. No new VUID errors relative to main; both logs contain the same device-create VUID for a structure unknown to the installed older validation layer. Conventions against canonical upstream/main and diff checks pass.

The PR description contains the updated rebase and validation details. Ready for re-review.

AI-assisted: yes (OpenAI Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6287643996 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6759#issuecomment-6287643996). Originally posted by [Zenodeon](https://github.com/Zenodeon) on 2026-10-20T09:16:24Z. --- @adriadam10 Addressed in the rebased head `823c6a55e148aeaa1e2444eb37a0d324ce0b78c5`, based on main `661f8b717`. - `hinted` reads through `hintOf(block)` and uses whole-block coverage; `startHints` retains `stampHint(block)` with the whole-block coverage check. - `watchPrivateMapping` clears the hint only when its sparse leaf already exists, without allocating a missing leaf, beside the preserved `driverPieces.dropped` update. - The page masks, stale-generation handling and regression assertions remain intact. Fresh Windows validation on the same RTX 4070 (driver 610.88), Windows 11 build 26200, GCC 15.2 Release: main passes 10/10 focused tests; this head passes 11/11, zero skips, including `agc_partial_watch_restoration` through the actual reset/commit callback. Required Vulkan validation and disabled shader caching were enabled on both builds, and loader logs confirm the validation layer loaded. No new VUID errors relative to main; both logs contain the same device-create VUID for a structure unknown to the installed older validation layer. Conventions against canonical upstream/main and diff checks pass. The PR description contains the updated rebase and validation details. Ready for re-review. AI-assisted: yes (OpenAI Codex).
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!6759
No description provided.