test(agc): accept compared shared pages after import cuts #10785

Merged
Sumaiter merged 1 commit from upstream-pr/10785 into main 2026-10-26 20:05:28 +00:00
Sumaiter commented 2026-10-25 00:35:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Sumaiter on 2026-10-25T00:35:45Z.


What

Update the host-import cut fixture for the compared-shared behavior introduced by #9159. Native write-watched ranges keep every previous assertion. An unwatched range is accepted only when collection is refused, no unchanged or untracked-hint proof is available, every page is reported as compared shared, and every page remains writable. Both paths still verify CPU stores through GPU readback. No production code changes.

Tested

Windows 11 Pro for Workstations 26200, WinLibs GCC 15.2.0, AMD Radeon RX 9070 XT (driver 32.0.32015.7029). Synthetic tests only; no title or homebrew run.

  • On unmodified main, agc_host_import_cut_lifetime reproduced the 1440 KiB failure. With this change it passes, including remapping and GPU readback.
  • agc_host_import_cut_lifetime, agc_reimport_bench, windows_write_watch, agc_rewatched_direct_shared, agc_import_alias_shared, agc_compared_shared_generations and agc_driver_compared_shared_snapshot pass with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. Neither the baseline nor the changed focused log contains a missing-layer warning or a VUID- error.
  • Full build passed. Full ctest --output-on-failure --parallel 6: 2273 passed, 7 skipped, 8 failed. The same 8 fail when rerun serially: agc_driver_depth_plane_partial_store, agc_driver_division_output_modifiers, agc_driver_division_result_modifiers, agc_driver_f64_conversions, agc_driver_f64_transcendental, agc_driver_sample_order_grid_reference, guest_rtc, pad_sdl. These are separate test executables; this PR changes only Recorder.cpp and no production code.
  • python tools/check_conventions.py --base origin/main passed. python tools/pr_overlap.py --branch fix-host-import-cut-watch --repo boykopovar/AnyPS5 completed; the 23 conflicting PRs it could not compare were checked for the changed helper and fixtures, with no shared function found.

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 (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: #10746
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 9070 XT, driver 32.0.32015.7029, Windows 11 Pro for Workstations 26200
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5000492725 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10785). Originally posted by [Sumaiter](https://github.com/Sumaiter) on 2026-10-25T00:35:45Z. --- ### What Update the host-import cut fixture for the compared-shared behavior introduced by #9159. Native write-watched ranges keep every previous assertion. An unwatched range is accepted only when collection is refused, no unchanged or untracked-hint proof is available, every page is reported as compared shared, and every page remains writable. Both paths still verify CPU stores through GPU readback. No production code changes. ### 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. --> Windows 11 Pro for Workstations 26200, WinLibs GCC 15.2.0, AMD Radeon RX 9070 XT (driver 32.0.32015.7029). Synthetic tests only; no title or homebrew run. - On unmodified `main`, `agc_host_import_cut_lifetime` reproduced the 1440 KiB failure. With this change it passes, including remapping and GPU readback. - `agc_host_import_cut_lifetime`, `agc_reimport_bench`, `windows_write_watch`, `agc_rewatched_direct_shared`, `agc_import_alias_shared`, `agc_compared_shared_generations` and `agc_driver_compared_shared_snapshot` pass with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. Neither the baseline nor the changed focused log contains a missing-layer warning or a `VUID-` error. - Full build passed. Full `ctest --output-on-failure --parallel 6`: 2273 passed, 7 skipped, 8 failed. The same 8 fail when rerun serially: `agc_driver_depth_plane_partial_store`, `agc_driver_division_output_modifiers`, `agc_driver_division_result_modifiers`, `agc_driver_f64_conversions`, `agc_driver_f64_transcendental`, `agc_driver_sample_order_grid_reference`, `guest_rtc`, `pad_sdl`. These are separate test executables; this PR changes only `Recorder.cpp` and no production code. - `python tools/check_conventions.py --base origin/main` passed. `python tools/pr_overlap.py --branch fix-host-import-cut-watch --repo boykopovar/AnyPS5` completed; the 23 conflicting PRs it could not compare were checked for the changed helper and fixtures, with no shared function found. ### 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 (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: #10746 - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 9070 XT, driver 32.0.32015.7029, Windows 11 Pro for Workstations 26200 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 00:39:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T00:39:36Z.

Review: APPROVED


I reviewed the changed helper against the reported #10746 failure and the compared-shared behavior introduced by #9159. The test keeps the existing write-watch assertions when the range is watched; for the unwatched path it checks that collection and hints provide no proof, all pages are listed as committed and writable compared-shared pages, then verifies CPU stores through GPU readback. That matches the failure mode and keeps the test focused on the transition under test.

check_conventions.py and git diff --check pass on this head. I could not run the GPU fixture locally: CMake configuration stops because this checkout lacks the SDL2 submodule and the environment lacks XRandR support. I reviewed the submitted Windows validation report, including the focused Vulkan validation runs and its separately listed full-suite failures; I am not treating those eight failures as passing or as verified pre-existing.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640796271 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10785#pullrequestreview-5640796271). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T00:39:36Z. **Review:** APPROVED --- I reviewed the changed helper against the reported #10746 failure and the compared-shared behavior introduced by #9159. The test keeps the existing write-watch assertions when the range is watched; for the unwatched path it checks that collection and hints provide no proof, all pages are listed as committed and writable compared-shared pages, then verifies CPU stores through GPU readback. That matches the failure mode and keeps the test focused on the transition under test. `check_conventions.py` and `git diff --check` pass on this head. I could not run the GPU fixture locally: CMake configuration stops because this checkout lacks the SDL2 submodule and the environment lacks XRandR support. I reviewed the submitted Windows validation report, including the focused Vulkan validation runs and its separately listed full-suite failures; I am not treating those eight failures as passing or as verified pre-existing.
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!10785
No description provided.