revert(agc): revert #15967 zero-scan skip, red on real Windows GPUs #18129

Merged
oneandonlydean merged 1 commit from upstream-pr/18129 into main 2026-11-10 15:37:36 +00:00
oneandonlydean commented 2026-11-10 14:57:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-10T14:57:38Z.


Reverts #15967 (merge 7162a53177). It is an exact inverse: 10 files, 8 insertions and 386 deletions, the mirror of the original.

Main has been red on real Windows GPUs since that merge. Four AGC tests fail there:

  • agc_driver_msaa_dcc_clear_2, _4 and _8: "a same-value CPU color store did not invalidate multisampled DCC residency"
  • agc_driver_native_depth_publication: "a native depth publication overwrote a byte the guest stored"

Reported in #18113 (RTX 4080, passes on d03beaf110, fails on 356bf9296b and b12b49a6e7) and #18114 (RX 6750 XT, bisected: 7162a53177 is the first bad commit, its first parent 9af2e01971 passes).

Cause: the change drops a page from the collected writes when the write watch reports it but the page is still all zero. That is what the added CheckKnownZeroFirstReads test asserts ("a zero store into a never-written page was not collected"). A guest store of zero over zero is therefore invisible, and the DCC residency and depth publication paths rely on seeing those stores.

GitHub's Windows job has no GPU. It builds with ANYPS5_AGC_EXECUTION_TESTS=F16ToF32Unpack;F64FmaSubnormals;RegistrationPrepareShutdown, so the four tests show as skipped and CI stayed green.

The skip-never-written-pages idea can come back with a design that still reports a zero store, and with a test that fails on this bug.

Hi @sktharunbalaji13-cmd, thank you for the work on #15967; this is only because of the zero-store case above.

  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5243473296 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18129). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-10T14:57:38Z. --- Reverts #15967 (merge 7162a531771ede67a80f0542a37c77c4f4f61eb1). It is an exact inverse: 10 files, 8 insertions and 386 deletions, the mirror of the original. Main has been red on real Windows GPUs since that merge. Four AGC tests fail there: - `agc_driver_msaa_dcc_clear_2`, `_4` and `_8`: "a same-value CPU color store did not invalidate multisampled DCC residency" - `agc_driver_native_depth_publication`: "a native depth publication overwrote a byte the guest stored" Reported in #18113 (RTX 4080, passes on d03beaf110, fails on 356bf9296b and b12b49a6e7) and #18114 (RX 6750 XT, bisected: 7162a53177 is the first bad commit, its first parent 9af2e01971 passes). Cause: the change drops a page from the collected writes when the write watch reports it but the page is still all zero. That is what the added `CheckKnownZeroFirstReads` test asserts ("a zero store into a never-written page was not collected"). A guest store of zero over zero is therefore invisible, and the DCC residency and depth publication paths rely on seeing those stores. GitHub's Windows job has no GPU. It builds with `ANYPS5_AGC_EXECUTION_TESTS=F16ToF32Unpack;F64FmaSubnormals;RegistrationPrepareShutdown`, so the four tests show as skipped and CI stayed green. The skip-never-written-pages idea can come back with a design that still reports a zero store, and with a test that fails on this bug. Hi @sktharunbalaji13-cmd, thank you for the work on #15967; this is only because of the zero-store case above. - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!18129
No description provided.