AGC (NVIDIA RTX 4060, Windows): agc_driver_msaa_dcc_unwatch refuses its 8-sample FMASK case after the DCC range turns compared #22930
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 BrDhaker on 2026-11-18T13:49:23Z.
What happens
On an RTX 4060 the 8-sample FMASK case of agc_driver_msaa_dcc_unwatch is refused with "AGC graphics: writes to a resident multisampled DCC target or its metadata are not implemented (DCC range 0x200200000+0x1000, 8 samples)"; it passes on the Intel Arc iGPU in the same laptop.
Title, test or build step
ctest agc_driver_msaa_dcc_unwatch (agc_driver_alpha_to_coverage_tests --dcc-unwatch)
AnyPS5 commit
main
4caf45cf1e, plus one local test-only change to tools/tests/test_performance_bisect.py (unrelated)System
Windows 11 Home (build 26300), WinLibs GCC 15.2.0, NVIDIA GeForce RTX 4060 Laptop GPU (NVIDIA 617.14); also Intel Arc Graphics iGPU (32.0.101.6556), where it passes
Host report
Steps to reproduce
Full Windows build with
-DBUILD_TESTING=ON, then in PowerShell:It stops in under a second. With
ANYPS5_GPU = "Arc"the same command passes.Log
What was checked
Same result in 4 of 4 runs on the 4060, including runs on their own outside the parallel ctest run. The Arc iGPU in the same laptop, with the same build, passes every time.
I added temporary prints to
checkDccCurrentin MultisampleTarget.cpp and to the test, then took them out again. This is what they showed for mode 7 (8 samples, CMASK and FMASK, FMASK page unwatched):absorbDccFill, whereGuestMemory::Watchedis false for them. On the Arc they stay watched for the whole case.EqualsCommittedUnsyncedis true at every check.Unwatch.ColorMetadataPass, beforecheckDccCurrent, the stamp becomes 275.copyCurrentreturns false on the stamp mismatch (MultisampleTarget.cpp:979) without comparing bytes, and the target is refused.From
c10d1eae66I understand that a driver or GPU store over a compared range's 64 KiB block is meant to count as a write, so I didn't changecopyCurrent. The open question is what stores to the DCC block during that last pass. The DCC metadata is 4 KiB inside its own 64 KiB block, so it might be the Windows deferred read of a partial block that returns its pages as CPU stores (libSceAgcDriver debt, "Deferred host-import reads"), but I haven't confirmed which call stamps it.Other failures in the same full run on the 4060 that I believe are known: agc_driver_stencil_plane_memory (#22427), agc_driver_store_over_untracked (#22670), and the setenv build failure (#22358).
I used Claude Code (an AI assistant) to help trace this; I checked the results myself on both GPUs.