Repository navigation
fix(agc): materialise cold DCC colour before tracking - #20534
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The changed code addresses the stated cold DCC initialization case, but I did not run the tests, so a formal approval is not justified.
What I ran
Reviewed head 62e9dbca4635c448781f605a5646259149180c53. I read the diff, manifest, description, and changed code around the implementation and regression test. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed code review | passed | Three changed files inspected |
| Test execution | not run | Windows results are author-reported |
| Negative control | not run | Could not run the regression without the fix |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported Windows test runs and Vulkan validation results were not independently verified. I did not read every line of the two large C++ files; I read the changed hunks and relevant implementation context. files.json was not available through the reader; the manifest lists three changed files, all included, and the file listing reports no excluded changed files.
To get this to a good state
Nothing is required. Optional: independently run the focused CTest cases on the stated Windows setup.
Validation: PR #20534 (Linux/AMD, RADV) — PASSIndependent end-to-end run of head Environment: CachyOS, kernel 7.3.4-1-cachyos x86-64 · GCC 16.2.1 · CMake 4.4.5 / Ninja 1.13.2 · AMD Radeon RX 9070 XT (RADV GFX1201, Mesa 26.2.6, Vulkan 1.4.354) · Khronos validation layer 1.4.363 (via Merge baseline: Gate 1 — build: Gate 2 — focused GPU tests, head vs base, same host/GPU (
Gate 3 — repo checks: Gate 4 — reproducer: Verdict: PASS. Logs/worktrees preserved locally under |
|
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.
|
|
Test report, NVIDIA on Windows: no regressions from this PR; the new
Unrelated to this PR: two tests fail on
Both passed here on Single run each. AI-assisted (Claude Code). |
|
Validation-layer run of this PR on an NVIDIA GPU under Linux, since CI covers only lavapipe. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release,
The pattern is the one from the Tested section. No new AI-assisted: yes (Claude Code) |
# Conflicts: # core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp # core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sample_multisample_target_tests.cmake # core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the inspected code and regression coverage support merging.
What I ran
Reviewed head d7bac96865dd849ecb6fb516544822d1cdedf306 using repo_read.py to inspect the prepared description, commits, manifest, diff, changed files and targeted repository context. No tests were run in this review; the Windows test results below are author-reported.
Read all four changed files listed as reviewed in manifest.json, along with targeted GuestMemory.cpp context. No files were excluded by the manifest.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | passed | Four reviewed files |
| Targeted code context | passed | DCC materialization and write tracking |
| Tests in this review | not run | Author reports 20 passed, 3 skipped |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run the tests or independently verify the author-reported Windows runs, GPU behavior, or other operating systems. Did not inspect unrelated repository files beyond targeted context.
To get this to a good state
Nothing is required.
What
An overlapping
ImportWatchedwindow can first-touch demand-zero colour pages after a resident multisample DCC owner has captured its write generation. On Windows those page faults appear in write-watch reports, so the later reuse refuses the unchanged colour range as a guest write.Materialise known-zero DCC planes before collecting their initial generations. The regression creates a native owner over untouched colour pages, checks its samples across an overlapping import and an adjacent store, and verifies that real zero and nonzero stores still refuse, at 2, 4 and 8 samples.
Tested
324dc5aae57113ce9ed9fa707eb2ef0814eb76dcwith only the regression: 17 passed, 3 existing Windows compared-import skips, and exactly the 3 new cold-colour cases fail at the resident-DCC colour refusal.ctest --test-dir build -R 'fmask|msaa_dcc|cold_texture_dcc|native_color_initial' -Vwith required Vulkan, disabled shader cache and the validation layer. Both logs contain 22 actual layer insertions, no missing-layer warning, zero VUIDs and zero validation errors. The Windows test-directory driver copy was selected explicitly.cb54da2875cfb2159085ecf5d73a6ffdae94b96a. The three changed file blobs match the tested candidate; the AGC, shader and third-party sources are unchanged since the tested base above.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)