Windows: since #15967, agc_driver_msaa_dcc_clear_2/4/8 and agc_driver_native_depth_publication fail: a zero CPU store into a page still known zero is not collected #18114
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 angrysandhill on 2026-11-10T13:32:18Z.
What happens
Since #15967 (
7162a53177), on Windowsagc_driver_msaa_dcc_clear_2,_4and_8fail withAGC graphics: a same-value CPU color store did not invalidate multisampled DCC residency, andagc_driver_native_depth_publicationfails withAGC graphics: a native depth publication overwrote a byte the guest stored.Title, test or build step
ctest
agc_driver_msaa_dcc_clear_2,agc_driver_msaa_dcc_clear_4,agc_driver_msaa_dcc_clear_8(agc_driver_alpha_to_coverage_tests) andagc_driver_native_depth_publication(agc_driver_native_multisample_depth_tests).AnyPS5 commit
main706573b02f, nothing merged on top (first seen on356ba02b5f). First bad commit7162a53177(merge of #15967); its first parent9af2e01971passes.System
Windows 10 Home 22H2 (10.0.19045), AMD Radeon RX 6750 XT, AMD Software Adrenalin 26.10.1 (driver 32.0.21045.16010), WinLibs GCC 15.2.0 r7 UCRT, Release,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON.Steps to reproduce
Each test fails in under 1.5 s, on every run.
Log
What was checked
356ba02b5f, all four fail in a full^agc_run (1,566 tests: 1,544 passed, 17 skipped, 5 failed) and in two more serial runs of only these tests. On706573b02f, they fail in 2 of 2 serial runs with the same messages.git bisect --first-parentover the 377mainmerges that touchcore/libs/prx/libSceAgcDriverbetweenf2d874c1fd(2026-11-01) and356ba02b5f, testingagc_driver_msaa_dcc_clear_2at each step: 8 steps, no skips, first bad7162a53177. Atf2d874c1fdthe three DCC tests pass 2 of 2 runs with the same assertion in the test;agc_driver_native_depth_publicationdid not exist yet (#13021, merged 11-03).git revert -m 1 7162a53177applies cleanly on356ba02b5f. With it (not committed), all four tests pass in 2 of 2 runs, and #15967's ownagc_driver_resident_heap_mirrorstill passes.356ba02b5frunsagc_driver_msaa_dcc_clear_4andagc_driver_native_depth_publicationon lavapipe, and both pass;_2and_8skip there. The change only acts on Windows, and the Windows CI jobs have no GPU, so these tests skip there.ForgetKnownZeroon recorded GPU writes (Recorder.cpp,Texture.cpp,GuestMemory.cpp) andMaterializeKnownZerobefore a storage image upload takes its generation (Texture.cpp). The multisampled DCC residency check (checkDccCurrentinMultisampleTarget.cpp:CollectWritesUncached, thenUnchangedSince/StoredOver) and native depth publication (WriteChangedIfHeldfromDepthSurface.cpp) call neither. The DCC test first fills the colour target with zeros (memset), then stores 0 into it. #15967 does not collect a zero store to a fresh page, so those pages stay known zero, the second store is filtered out too, and residency stays valid. I have not traced the depth case the same way; the revert shows it has the same cause.agc_driver_msaa_dcc_clear_*withrequires watched guest memory(#12522), andagc_driver_native_depth_publicationwithlost live samples, HTILE, padding or guest writes(#16883). The AMD Windows passes posted on #16883 were on23d549a9c7and4c4ff42a6c, both before #15967.agc_driver_sample_order_grid_reference(#9507); it passes withAPS5_NO_GPL=1, as that issue describes.AI-assisted: yes.