test(agc): accept compared shared pages after import cuts #10785
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10785"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
main,agc_host_import_cut_lifetimereproduced 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_generationsandagc_driver_compared_shared_snapshotpass withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. Neither the baseline nor the changed focused log contains a missing-layer warning or aVUID-error.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 onlyRecorder.cppand no production code.python tools/check_conventions.py --base origin/mainpassed.python tools/pr_overlap.py --branch fix-host-import-cut-watch --repo boykopovar/AnyPS5completed; the 23 conflicting PRs it could not compare were checked for the changed helper and fixtures, with no shared function found.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)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.pyandgit diff --checkpass 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.