test(agc): stamp the guest writes the recorder tests make behind the driver's back #6155
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6155"
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 Dextroid17 on 2026-10-14T23:44:03Z.
What
Three writes in
agc_driver_recorder_testschange guest memory directly and never callGuestMemory::MarkWritten: the twomemsets (0x22, 0x33) inresourceReadTestsandguest[offset + 8] ^= 0xffuinmisalignedRegionTests. Since98ce8af56(#5906, draw snapshot reuse) the draw snapshot trusts the stamp, so it hands back the old bytes and the checkssecond draw observed overwritten inputandthe shader's patched offset into the draw snapshot misses the view's bytesfail. This adds aMarkWrittenafter each write, 3 lines intests/Recorder.cpp. No driver code changes.This only shows on top of the
(9) a scan under a pending write was keptfix, because that check stops the run first. That fix is #5883 (the same hunk as6bd076c19), so this PR is stacked on it.Discussion and the bisect: #1532.
Tested
ab9a47684. Branch plus the #5883 hunk:agc_driver_recorder_tests, no arguments, exit 0,Recorder read tracking and label tests passed, 3 of 3, about 2 s each.second draw observed overwritten input. With the two memsets stamped it stops next atthe shader's patched offset into the draw snapshot misses the view's bytes(3 of 3, maineea428ca8). With the (9) hunk, the run passes at11adb34bc(parent of98ce8af56) and stops atsecond draw observed overwritten inputat98ce8af56, 2 of 2 each.python tools/check_conventions.py --base upstream/mainpasses.Checklist
main; no other open PR implements the same functions (#5883 is the (9) hunk only; it does not touch these writes)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:15:39Z.
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.
core/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cpp