fix(agc): treat arena host holes as uncovered in every write tracker query #4155
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4155"
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 LeandroLP23 on 2026-10-12T00:07:21Z.
What
Fixes #4087. On Windows,
agc_write_trackinghas failed since #3594 (an unwatched range reads as not stored over). #3594 excluded the host regions inside the guest arena fromWatched,collectWrites,UnchangedSinceandUnchangedSinceAll.StoredOver,UnchangedSinceCollected,WrittenSince,ChangedBlocksandImportWatchedstill passedWriteTracker::covers()for those regions. A host hole was therefore reported as unwatched and, at the same time, proven not stored over.This is the broader option @screamm suggested in #4087, which has the analysis and the bisection. The exclusion moves into
WriteTracker::covers(), which every query goes through, so a host hole answers like any other uncovered range. The four per-function checks it replaces are removed.storeOwnkeeps its own check, since that one tests the page-rounded range. The size guards #3594 added stay.The #3594 regression in
BdaResources.cppnow also checksUnchangedSinceCollectedandStoredOveron an arena host hole.Tested
Windows 11 (26300), Radeon 860M, WinLibs GCC 15.2.0 r7, Release, full build.
mainae7dbfa9cdoes not build on Windows without #4021, so the local runs and the fork CI branch apply #4021 on top. This PR does not include it.agc_write_tracking,agc_driver_graphics,agc_driver_bda_device,agc_driver_bda_span_reads,agc_recorder_kept_bytesandagc_driver_wait_shutdown: 6/6 pass in 3 runs.GuestMemory.cppreverted tomain, two tests fail:agc_write_tracking:an unwatched range reads as not stored over;agc_driver_graphics:AGC graphics: an arena host hole was proven not stored over, the new check.ctest: 905/906 pass. The one failure,guest_kernel_stack_protect, also fails onmainwithout this change; that is #4088.guest_kernel_stack_protect(#4088). The Linux job failsagc_vector_windowandagc_driver_prepared_shaders_registered_workgroup_sync. Every line this PR changes is inside#ifdef _WIN32, so on Linux the build is the same asmain.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-12T00:14:59Z.
Closing in favour of #4131, which was opened first and fixes #4087 the same way for the failing reader. Windows results are posted there.
Pull request closed