fix(agc): exclude neighboring stores from DCC invalidation #7132
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7132"
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 MarcZX10 on 2026-10-17T12:57:47Z.
What
Retain the existing unchanged-generation proof when resolving resident multisampled DCC targets, while accepting the finer
StoredOverproof for unrelated stores within the same tracking block. Keep refusing actual overlapping writes and uncertain or evicted fine-grained history. Includes the focused adjacent-store regression.Tested
Linux x86_64, GCC 12.2: CMake Release configure succeeded. The focused fixture and AGC driver build stopped before compiling changed files at the unrelated existing
SrtDescriptorEvaluation.cpptemplate parse error.git diff --checkpassed. Candidate author reports 18 physical-GPU fixture passes (RTX 5080 and AMD Radeon Graphics) plus llvmpipe coverage at the exact candidate commit in issue #5336; these are author-reported results, not run in this environment.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)Carries the three original commits by Romans Pokrovskis unchanged:
975c3ee6b3,6eebcc2ce1, ande040cb7f75. The neighboring-store failure is separately reproduced; its causal relationship to the title failures in #5336 remains unknown.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T13:08:33Z.
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.
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppImported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T13:12:30Z.
First independent GPU run of this head (the PR lists author-reported runs only): head
e040cb7f7, Windows 11, MinGW (WinLibs GCC 15.2.0), Release, serial fresh processes.agc_driver_alpha_to_coverage,agc_driver_alpha_to_coverage_state,agc_driver_sample_mask_multisample,agc_driver_sample_multisample_target— 4/4 pass.ANYPS5_GPU=UHD, igvk64): same four, 4/4 pass.The neighboring-store cases in the updated
AlphaToCoverage.cppfixture pass on both devices.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:13:58Z.
Thanks for the independent GPU validation. This adds a second hardware report: the focused alpha-to-coverage/sample-mask/sample-multisample group passed 4/4 on both an RTX 3070 and Intel UHD 630, including the neighboring-store cases. I’ll keep the PR’s validation summary aligned with the distinction between these independent runs and the issue author’s broader title testing.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:45:00Z.
Thanks for testing the exact head on both NVIDIA and Intel. The four focused cases pass on each device, including the neighboring-store regression cases; this is useful independent confirmation of the reported DCC invalidation behavior.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T14:03:39Z.
Thanks for the first independent GPU run on this head. The RTX 3070 and UHD 630 results confirm the updated neighboring-store regression cases pass on both NVIDIA and Intel; I have recorded the exact device and driver scope.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T16:57:24Z.
@MarcZX100 thank you for carrying the three original commits unchanged with attribution. Our source audit confirms that exact e040/#7132 is already active in current integrationc784.
The latest Sonic validation distinguishes the remaining stop from the adjacent-store case: public-source observers7b/78db record
unchanged=0 stored=1 reason=driver-overlapin the DCC plane. The rejected piece/generation matchesBdaResources::markWrittenPages. Its page records do not identify the exact GPU store or prove a full-byte metadata clear, so the current refusal remains appropriate pending that analysis.These are current-integration observations, not new exact-PR-head results; the original e040 hardware validation retains its original pin. The observer builds pass on both OSes and its existing2x/4x/8x positive/refusal controls pass18 times across NVIDIA/AMD, plus6 Linux controls. This does not reduce the independently reproduced neighboring-store correction or establish a shared Ruffle/AMD cause.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T17:02:55Z.
Thanks for tracing the remaining Sonic rejection to a newer driver-overlap piece in
BdaResources::markWrittenPages. I agree that the page records identify the recording path but do not prove the bytes/value written, so the current refusal should remain. This separates the unresolved DCC writer semantics from #7132’s independently tested neighboring-store false positive; I’ll keep the PR scoped to that correction.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-17T19:36:47Z.
A title data point for this PR. Ruffle (PPSA68091) on Linux, RTX 4070 Ti (NVIDIA 595.99.02), 60 s with scripted pad input.
Base is
main5859889b2with #6543 and #7250 merged; #7250 takes a whole-range DCC fill of a resident multisampled target as its fast clear.writes to a resident multisampled DCC target or its metadata are not implementede040cb7f7)A local print there showed the DCC range
0x4004606000+0x14000reading the fill's key with nothing pending when the check failed. That fits a store to a neighbouring range in a shared 64 KiB tracker block, which is what this PR excludes.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T20:49:37Z.
Thanks for the independent Ruffle run on the PR head. The base/+PR comparison and the reported
0x4004606000+0x14000fill state give a useful title-level datapoint for the neighboring-store correction. I agree the run only supports this specific correction: the separate driver-overlap DCC rejection still lacks byte/value proof and should continue to refuse. I have recorded the exact hardware, driver and tested commit.