fix(agc): materialise cold DCC colour before tracking #20534
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20534"
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 VicRaster on 2026-11-15T09:00:20Z.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T10:01:09Z.
Review: COMMENTED
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
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.jsonwas 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.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T00:10:18Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the inspected code and regression coverage support merging.
What I ran
Reviewed head
d7bac96865dd849ecb6fb516544822d1cdedf306usingrepo_read.pyto 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 targetedGuestMemory.cppcontext. No files were excluded by the manifest.Results
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.