Repository navigation
fix(agc): ignore unchanged import touches in stored-range checks - #22306
Conversation
|
Linux run of this head, since the description only covers Windows. Setup: Ubuntu 26.04.1 (kernel 7.0), GCC 15.2, Ninja, Release, RTX 4070 Ti on NVIDIA 615.71. Built
I couldn't run a negative control with only From reading
|
|
Ran the storage-import and write-tracking tests this PR touches with the Khronos validation layer on Linux and NVIDIA's proprietary driver, since the PR was tested on Windows only. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
New on the PR side and absent on main: No new AI-assisted: yes (Claude Code) |
|
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.
|
|
Windows + AMD run; I found no AMD run in the description or in the comments. Head Setup: Windows 11 25H2 (build 26200), AMD Radeon 760M integrated graphics (
Test names28 tests: Update: re-run on the new head. Head
Test names28 tests: Update: re-run on the new head. Head
Test names28 tests: AI-assisted: yes (build and runs scripted with an AI assistant, on the hardware above). |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The change addresses the reported import-touch accounting issue, and the inspected code and regression coverage support the fix; no checks were run in this review.
What I ran
Reviewed head f21a7ef7dc0345ac390cc9c18856ce7ec2fe8c0c. No commands or tests were run; this session provided the pinned reader only. The author reports focused tests passing on Windows with an RTX 3080 Ti; that result was not independently verified.
Read the prepared description, commit list, manifest, and diff. Read the changed code and relevant context in GuestMemory.hpp, GuestMemory.cpp, DepthSurface.cpp, WriteTracking.cpp, Recorder.cpp, agc_driver_recorder_tests.cmake, and NativeMultisampleDepth.cpp, plus the added debt fragment. Recorder.cpp full text was excluded from the review folder; its relevant changed section was read through the pinned reader. No other changed file was excluded.
Results
| Check | Result | Note |
|---|---|---|
| Code review | passed | No verified defect found |
| Tests in this review | not run | Reader-only environment |
| Author-reported tests | not run | Windows results reported in PR description |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported builds, focused tracking and storage tests, Vulkan validation, Linux behavior, and other GPU behavior were not independently run or confirmed. No merged-preview check was performed.
To get this to a good state
Nothing is required.
|
Head The rest of the full suite and AI-assisted: yes |
f21a7ef to
a54f5a0
Compare
|
@Colewiz7 thank you — your two RADV failures exposed a problem in the new GPU test's setup. The test was overriding the device probe with I corrected that in I also rebuilt the complete stack on current Could you rerun |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The inspected changes consistently separate import-window touches from CPU stores and use that distinction in stored-range and depth-publication checks; no blocking defect was verified.
What I ran
Reviewed head a54f5a0b43a08a90c6691c2378ee6deeafa1cb0c. No build or tests were run in this review.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Tracked the accounting and publication changes |
| Build and tests | not run | Author reports focused checks; not independently verified |
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
Reviewed the prepared diff and pinned-head source for GuestMemory.hpp, GuestMemory.cpp, DepthSurface.cpp, Recorder.cpp, WriteTracking.cpp, agc_driver_recorder_tests.cmake, NativeMultisampleDepth.cpp, and docs/dev/debt/libSceAgcDriver.md.
Not verified
Build and test results in the description were not independently run. Full-file context beyond the relevant changed hunks was not read. files.json was not available; the review-folder listing reports eight changed files, all of which were inspected at relevant hunks. The large Recorder.cpp file was read through the pinned-head reader around its changed function and dispatch path.
To get this to a good state
Nothing is required.
|
By the time the skip check runs, Draining the recorder before the return fixes it locally: recorder.Submit();
device.WaitQueue();
recorder.Sync();
std::cout << "host imports are compared, not watched: storage import touch not tested\n";
return false;With that, both GPUs report @VicRaster, can you add the drain, or move the watch check ahead of AI-assisted: yes |
…touched An import window marks pages the write watch saw dirty during a host import whose bytes did not change as possible CPU touches. Native multisample depth publication counted those marks as CPU stores and threw when such a page held host-changed bytes equal to its snapshot. The tracker now keeps the pages it noted as real CPU stores apart from those touches, and publication asks StoreUnchangedSinceLastCollect, so a touched page takes the host result while a real same-value CPU store still throws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ublication StoreUnchangedSinceLastCollect still read import window touches through storedOver once any other page of the same 64 KiB block had a stamped store, so a touched page beside a stored page threw again. The store query now reads only real CPU stores there too, and publication asks it once per page before falling back to per-byte queries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a54f5a0 to
b54ec28
Compare
|
@Colewiz7 fixed in I also rebased the five-commit stack onto current
Your local run already proves this exact drain makes both RADV devices return CTest |
|
Confirmed at
Both print AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The changed accounting and publication paths are internally consistent with the stated import-touch behavior; the supplied test report supports the exercised paths, while I did not run checks in this review.
What I ran
- Reviewed head
b54ec28cc5f7c0ed1e14467fa723c20ade0970ddusing the prepared diff and the pinned repository reader. - No build or test commands were run. The test results in the description are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Relevant logic and context inspected |
| Build and tests | not run | Author reports focused checks passing |
Findings
Blocking
None.
Non-blocking
None.
Not verified
- I read all changed files listed in the manifest except
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp, whose full text was excluded from the review folder. I inspected its added hunk in the prepared diff only; surrounding implementation and callers in that file were not verified. - I did not independently rerun the reported Windows or RADV checks, including the GPU import policy and skip-drain behavior.
- The provided bundle did not include
review/files.json; excluded-file details are therefore based on the manifest and supplied description.
To get this to a good state
Nothing is required.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change based on the code inspected; the focused regressions align with the tracker and publication changes.
What I ran
No commands were run. The bundle reports focused Windows tests and a negative control; these results are author-reported, not independently verified. Head reviewed: 62bcbcf0bd7533ee8b944cf4a5b23992775e4336.
Results
| Check | Result | Note |
|---|---|---|
| Code review | passed | Inspected tracker, publication, and regression changes |
| Focused tests | not run | Only author-reported results available |
| Negative control | not run | Only author-reported result available |
Findings
Blocking
None identified in the inspected changes.
Non-blocking
None.
Not verified
The changed core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was read only around its new regression and dispatch; its full text was excluded from the review folder. The rest of the changed files listed in the manifest were read from the bundle or at the pinned head. No tests were run independently, and the reported Windows validation, other operating systems, GPUs, and title behavior were not verified. review/files.json was not available through the reader; exclusion status was taken from review/manifest.json.
To get this to a good state
Nothing is required.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the focused implementation and regression cases support the stated fix, while platform and title coverage remains limited.
What I ran
Reviewed head 3d8d444998c3a5e9e924261354026971ddf5a86b. No commands or tests were run in this review; the Windows validation and negative control described in the PR are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Reviewed all changed lines |
| Tests run by reviewer | not run | No execution environment available |
| Author-reported focused validation | not run | Windows 11, RTX 3080 Ti |
Findings
Blocking
None.
Non-blocking
- The new tracking and depth-publication cases are narrowly targeted and cover unchanged import touches, adjacent stores, and same-value stores. The PR description reports focused Windows coverage; Linux, macOS, RADV, and title behavior remain unverified here.
Not verified
No build or tests were run by the reviewer. The PR description’s test results and negative control were not independently verified. Reviewed all changed files listed in the manifest, including Recorder.cpp and NativeMultisampleDepth.cpp through the pinned repository reader; none were excluded. The review folder did not provide files.json, so its exclusion list could not be independently checked.
To get this to a good state
Nothing is required. Optional: run the focused cases on Linux and macOS, and on RADV, to broaden platform coverage.
What
An unchanged host-import touch can make
StoredOverreport a CPU store after a neighbouring page in the same 64 KiB block is written. A storage image can then retain stale guest bytes instead of publishing its GPU result in the shared edge block.Use #22062's real-store accounting for
StoredOver. This branch carries that prerequisite and keeps the storage and tracker regressions from published headb54ec28cc5. The GPU regression follows the device's actual import policy; comparison-mode imports skip after draining recorder work, preserving the published RADV correction.The local current-main update resolves the depth-publication conflict using frankea's tested composition: retain the page/byte
StoreUnchangedSinceLastCollectcheck before main'scause != DepthReadCause::Access && cause != DepthReadCause::Writerefusal and guest-byte copy. Main's #21719 strict writable-buffer refusal and guest-write retirement remain intact. The native publication test runs its ShaderBufferWrite, GuestWriteAfterRead and UndecidedShaderBufferWrite controls. Debt changes use fragments, retain current main's entry and measured-driver information, and remove the duplicate entries produced by the automatic merge.Status: #22062 remains open and is still the prerequisite. This branch carries its accounting; the additional StoredOver correction remains a separate follow-up.
Tested
23 November 2026, main
f5b7e1d1ac816c41cb798d09ecbf42cf2e7e9edfversus head62bcbcf0bd7533ee8b944cf4a5b23992775e4336. Windows 11 build 26300, WinLibs GCC 15.2.0 Release, NVIDIA GeForce RTX 3080 Ti driver 610.88, Khronos validation 1.4.363 (pinned Vulkan-Headers 1.4.335).Built the focused targets from pinned dependency sources in a fresh build tree, then rebuilt the candidate in the same tree. Ran all
agc_write_tracking*,agc_driver_native_depth_*,agc_driver_native_multisample_depth,agc_storage_import_segment_memo, and the candidate's addedagc_storage_import_touchwith verbose CTest output,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, andVK_LOADER_DEBUG=layer.The one added case is
agc_storage_import_touch; it executes and passes. No existing case changes result.agc_driver_native_depth_driver_queued_fillskips on both revisions because the device's import policy does not support that case. Every passing GPU case logs actual validation-layer insertion and selects the RTX 3080 Ti. Neither log has a missing-layer message,Validation Error,VUID-, orSYNC-HAZARD.Negative control: ran the candidate recorder executable from a separate directory with the exact archived main driver and dependencies. The storage-import regression exits 1 with
an import-window touch beside a store dropped 57344 new GPU texels after an earlier write-back. It passes with the candidate driver. This compares the full stacked candidate with main; it is not a new main-plus-#22062 control.Conventions, whitespace and debt-fragment checks pass. The name lookup completed across 2,501 open PRs, but the names are internal functions and the export lookup reports them as undeclared; it does not establish globally clean overlap. This is a focused Windows validation, not a full-suite, Linux, macOS, RADV or title rerun.
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)