test(agc): invalidate the guest page cache in the depth fixtures #20134
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20134"
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 oneandonlydean on 2026-11-14T17:32:02Z.
What
The Windows job intermittently fails
agc_driver_graphicsandagc_graphics_profile_drawat the Require intests/DepthSurfaceReuse.cpp(TestPartiallyResidentPlanes).Cause: TestReadOnlyStalePlaneFlush and TestPartiallyResidentPlanes map pages with raw VirtualAlloc and mprotect, which GuestMemory's page cache does not see. A freed fixture can leave a stale readable run at an address the next fixture reuses, so the unmapped hole page can read as mapped and the partially resident refusal never fires.
Change (test only): the fixtures call GuestAllocationsInvalidate after each mapping change, and TestPartiallyResidentPlanes checks the hole page reads as unmapped before relying on it, so a stale cache fails at that line.
Tested
Linux (release build):
agc_driver_graphicspasses. Windows (local CI on this head,ed84e19ba9, on main5358c307c0): full ctest passes, includingagc_driver_graphicsandagc_graphics_profile_draw.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-11-14T19:05:17Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
ed84e19ba95ddfa215ed783aa1a364db3bce5f95adds explicit GuestMemory cache invalidation around fixture mapping changes and asserts the intended hole remains unmapped; no concrete defect was found in the inspected code.What I ran
No commands or tests were run. I reviewed the prepared diff and read the changed test file, the invalidator implementation, and the committed-range implementation at the pinned head. The author reports a Linux release run; it was not independently run here.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported Linux test was not independently run, and the intermittent Windows failure was not reproduced. No other changed files were excluded:
files.jsonwas not available in the supplied reader interface; the manifest lists one changed file and marks its full text included.To get this to a good state
Nothing is required.