feat(agc): take a full DCC fill of a resident multisampled target as its fast clear #7250
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7250"
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 milescoviello on 2026-10-17T19:36:25Z.
What
A native multisampled color target with DCC imports its uniform DCC fast clear on first use (
initialDccClear). After that,checkDccCurrentrefuses any change to its color, DCC or CMASK memory.Titles built on the PS5 Mesa stack fast-clear such a target with two buffer fills. The RADV fill kernel, which #6543 takes as a buffer fill, writes the CMASK to
0xcc(FMASK cleared, color expanded) and the DCC to a uniform clear key. They do this every time they clear the target. So the target's second use stops on:A local print in
NoteColorMetadataFillshowed the fills (maine3838332e+ #6543):0x40062c0000+0x1000<-0xcccccccc0x40062c1000+0x1000<-0x404040400x4004600000+0x6000<-0xcccccccc0x4004606000+0x14000<-0xc0c0c0c0The fills are recorded on the GPU. When the next draw binds the target, they're usually still pending in the same batch.
This PR handles that case in
MultisampleTarget.cpp:NoteColorMetadataFillnow records, per resident DCC target, the last fill over its DCC range and the last one over its CMASK range. A fill that covers the range only partly clears the record.ApplyFastClearfirst runsabsorbDccFill. When a whole-range DCC fill was noted and the range holds that key once pending writes land, it computes the clear withMultisampledDccClear, as the import does, from those bytes. It then clears every sample to it and takes the ranges' new write generations. A CMASK written since the last use must also have been filled whole with what it now holds.LandedUniformMetadataByte(DccMetadata.cpp) returns the uniform byte a range holds once pending recorded writes land (KeysAfterPendingWrites), or the bytes in memory when nothing is pending. It reads the bytes directly, afterFlushGpuWrites, rather than throughGuestMemory::Read, whose resident-image read guard refuses these ranges.checkDccCurrentthen checks only the color range, so the absorbed fill may still be pending.MultisampledCmask. That tracker models CMASK-only fast clears and refused0xccas mixed (its MSAA codes are #6669's topic).Why the fill is enough: after a fill of uniform clear keys over the whole DCC range, every block reads as the clear color whatever its color bytes and FMASK hold. The guest's DCC bytes can't tell us this on their own, because draws don't update them on the host. A same-value CPU store to the keys stays refused (the existing case in
DccFastClearTests).Tested
Linux (Ubuntu 24.04, GCC 13.3, Release), RTX 4070 Ti, NVIDIA 595.99.02;
main5859889b2. Rebased ontomaine0fcdb52b1(c92d72cc1c), which has #7132; the only conflict was this debt entry next to #7071's new one. On the rebased headagc_driver_msaa_dcc_clear_{2,4,8}pass 3 of 3, and the 20 tests matchingmsaa|multisample|dcc|cmask|fmask|alpha_to_coveragepass.agc_driver_msaa_dcc_clear_{2,4,8}(newDccRefillTests, run by--dcc-fast-clear), at 2, 4 and 8 samples with and without a CMASK:1111by a whole DCC fill, plus a whole CMASK fill, on the CPU and recorded on the GPU withVulkanDevice::FillBuffer, resolves to the new color under the next draw;0xffkeys and a CMASK-only fill are refused.On
mainall three tests fail withwrites to a resident multisampled DCC target or its metadata are not implemented. With this change they pass 3 of 3.ctest
^agc_(662 tests, NVIDIA): all pass, on d73d04f7a. The head differs only in sending unwatched metadata to the existing refusal (below), which doesn't happen on this driver. The three DCC tests pass 3 of 3 on the head too.On an Intel Arrow Lake iGPU (Mesa 26.1.6 ANV), the 19
^agc_tests whose names cover MSAA, multisample, DCC, CMASK, FMASK and alpha-to-coverage: 18 pass.agc_driver_sample_multisample_targetfails the same way onmainthere; #7191 addresses it.[write-watch]line reads "host imports resolve write protection: yes".checkDccCurrent's existingrequires watched guest memoryrefusal, and the GPU-fill case expects that refusal when the range is unwatched.Titles, 60 s each with scripted pad input, measured on b4e35279a:
main+ #6543 + #7132writes to a resident multisampled DCC target ...sampling multisampled color target 0x400c000000 (3840x2160, 8 samples, vk format 44) as a 3840x2160 texture of 8 samples and guest format 56 (vk 37) is not implementedWith #7253 on top, which samples that 8x target through a red/blue swizzle, Rush 2 runs to the 60 s limit at 600 presents per 10 s. Wave Race 64 presents at that rate until a segfault at 48 s that I haven't looked at yet.
Ruffle also needed #7132, now in
main: without it, a store to a neighbouring range in a shared 64 KiB tracker block still trips the color or metadata check later. Rush 2 and Wave Race 64 reach their next stop with #6543 alone.Rush 2 and Wave Race 64 again on the current heads, now that #7253 is in
main:main5057673804+ #6543 (7bfb645ffa) + this PR (5be36f095e), 60 s with pad input. Rush 2 runs to the limit and ends on its "Locate ROM / Exit" launcher (104 frame dumps, one every 30 frames). Wave Race 64 presents until the segfault at 48 s (57 dumps). For comparison,main13e48ed290alone stops both at 2 s onmultisampled DCC CMASK compression or register clear is not implemented, andmain385ed71f2c+ #6543 stops both at 2 s onwrites to a resident multisampled DCC target or its metadata are not implemented.@Amoenus validated head 257a47071 on Windows with an RTX 5080 and an AMD Radeon (comment). The DCC refill tests and four related groups pass 3 of 3 on both, and Linux/lavapipe passes the groups it supports. With their Sonic integration branch and #6543, Sonic Unleashed Recompiled (PPSA99902) no longer stops at NOW LOADING. It reaches PRESS START, the CONTINUE menu, the opening cinematic and the level-loading screen, where it stops on an unrelated mipmapped 3D target (#7260).
Rebased onto
mainb106f6f8c0(50264ab548). The conflict was #6869'srequireDccRangeincheckDccCurrent: the refill's shortened range list now goes throughmain's helper, and the watch check still runs over every range before any write check. The debt line is cut to the gap, as CONTRIBUTING.md now asks. The 39 tests matchingdcc|multisample|msaa|alpha_to_coverage|cmask|fillpass, and this PR's 8 tests pass 3 of 3. Khronos validation (the LunarG SDK's 1.4.363 layer,ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V, RTX 4070 Ti): no validation messages onmainor with this PR, and neither log reports the layer missing.Rebased onto
main0d078f75d3(802150f9e9). The only conflict wasdocs/dev/debt/libSceAgcDriver.md, where #7175 added the polygon primitive entry just above this PR's DCC fast clear entry; both are kept. The 24 tests matchingmultisample|dcc|cmask|fill|msaapass.Rebased onto
main6e27fc8f07(58c28d9caa, with the two follow-up commits). The only conflict was next tomain's new view-type parameter ofMultisampleTarget::Sampled: this PR'sNoteMetadataFillsits just above it, and both are kept. On the rebased headagc_driver_msaa_dcc_clear_{2,4,8}pass 3 of 3, and the 25 tests matchingmultisample|dcc|cmask|fill|msaapass.Head 5be36f095e adds two commits after @screamm's Windows run (comment), which found
clear_8failing 3 times in 113 runs:checkDccCurrentnow checks that every range is watched before it checks any for writes, so a fill it can't take because a range is unwatched is reported asrequires watched guest memory. Off Windows, the GPU-fill test case now runs with host imports kept watched, and a new case with them unwatched must be refused. On Windows, where a settled import can be watched again before the draw, an unwatched GPU fill may be refused or drawn, and a drawn one is checked.clear_{2,4,8}pass 20 of 20 on NVIDIA and 3 of 3 on Intel ANV, and the 28 tests matchingmsaa|multisample|dcc|cmask|fmask|alpha_to_coverage|fillpass.Ruffle's built-in demo is an empty 21-byte SWF, so its frames are white with or without this PR. With a generated SWF of three rectangles on a white stage, one of them moving every other frame, Ruffle on
main385ed71f2c+ #6543 + this PR draws it correctly in all 84 frame dumps, with no content left over from the previous frame. Without this PR it stops at 11 s on the same line (comment).check_conventions.pypasses.pr_overlap.pylists the multisample work inMultisampleTarget.cpp(#6215, #6635, #6683, #6869, #6971, #6973, #6987, #6989, #6995, #7002) and the same debt entry (#7071, #7175). This PR touchesApplyFastClear, thecheckDccCurrentloop and a few new members, and I'll rebase onto whichever lands first. It doesn't change the lines #7132 edits.macOS: @jotitadev ran the DCC refill tests on an Apple M2 Max under MoltenVK 1.4.2 and MoltenVK main + SPIRV-Cross #2704 (head cbae9e7af, x86-64 build under Rosetta, stacked with #7600):
clear_2andclear_4pass 3 of 3 on both drivers and fail with only the test file applied;clear_8skips, since MoltenVK offers 1, 2 and 4 color samples there. The rest of their^agcsuite is unchanged.Validated on Windows by @Amoenus (RTX 5080 and an AMD Radeon) and by @screamm (RTX 4070, before the last two commits), and on macOS by @jotitadev (Apple M2 Max). Not checked on a console.
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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T19:53:02Z.
Windows datapoints, head
257a470712a, MinGW (WinLibs GCC 15.2.0), Release, serial fresh processes:agc_driver_msaa_dcc_state,agc_driver_msaa_dcc_clear_2/4/8,agc_driver_alpha_to_coverage,agc_driver_sample_mask_multisample,agc_driver_sample_multisample_target— 10/10 pass.ANYPS5_GPU=UHD, igvk64): same ten, 10/10 pass.Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T19:57:25Z.
Independent validation of head 257a470712a45dd537d0c63c0ae398df29d06c8e, composed with our retained Sonic integration in fork6d76fb2098, on main922dc8999e. Original PR commits/authorship are retained; #6543 is also present. This is a composed integration check, not an isolated upstream-main result.
Regression and devices (Windows11 Enterprise10.0.26200, GCC15.2):
msaa_dcc_clear_{2,4,8},clamped_global_fill,fill_cover_keys,multisample_retirement,sample_multisample_target) pass3 times each: 21 NVIDIA +21 AMD passes, no skips. Maximum invocation0.92s NVIDIA /0.83s AMD.10de:2c02, driver32.0.16.1062; AMD Radeon(TM) Graphics1002:13c0, driver32.0.21036.18.Sonic Unleashed Recompiled (PPSA99902, #4443 / #5336): integration6146 previously stopped at NOW LOADING after28.101s on
writes to a resident multisampled DCC target or its metadata are not implemented(0x40819f4000+0x87000,8samples). With this composition:This corroborates the practical relevance of the resident-clear handoff preserved in our historical08891d938 menu/cinematic branch. Your current-backend implementation lets us recover that milestone without copying the broad historical stack. Thank you. AI-assisted validation/reporting: Codex.
Extended observation: same6d76/RTX5080 reaches the level-loading/tutorial screen after the movie, then exits0xC0000409 after758.222s without timeout on
mipmapped 3D color targets are unsupported. The resident-DCC stop does not recur. Distinct issue7260 has scope and reproduction.96 captures, four normal inputs,142 prior files restored; no gameplay claim.New main-only follow-up — 2026-10-19 UTC
On literal main
bf2c63f853, RTX5080 now passes 2x/8x three fresh processes each, but 4x fails3/3 atmultisampled DCC target reuse requires watched guest memory (color range 0x2002b0000+0x100000, 4 samples). Libraries/relinker and fixture rebuilt; explicit Khronos loaded, implicit layers disabled per process; zero VUID/errors/warnings. Host and drivers are unchanged. #7936 maintains the separate, earlier AMD resolve assertion and exact baseline scope.A local test-only print probe narrows the NVIDIA4x failure to
DccRefillTests, mode1 without CMASK, during resolve after the second draw succeeds. The color range is watched before that resolve. With existingAPS5_TRACE_HOST_IMPORT=1, the next messages are:That 4MiB import covers both the destination and resident source. This is a CPU metadata-fill case, earlier than the mode5 GPU-fill/rewatch case discussed above. #6457's aligned-import grouping is relevant context, not an established introducing commit. Production code/guards are unchanged in the probe; no fix or new game result is claimed. Import-window control completed: restricting this fixture to single-allocation imports passes4x3/3; restoring the default-window probe reproduces the refusal3/3. Production guards are unchanged. Distinct report #8103 holds the reproduction, control and limits; no global window reduction is proposed. AI-assisted: yes (Codex).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-17T20:19:15Z.
@Amoenus, thank you for the two-GPU validation and the Sonic run. I've added both to the description, with Sonic noted as your integration composition rather than an upstream
mainresult.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T20:34:18Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL205-206, L255, L335core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL22-23, L205-206, L255, L335core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL22-23, L205-206, L255, L335core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL22-23, L205-206, L255, L335core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL22-23, L205-206, L255, L335Some 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.
docs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/include/DccMetadata.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdImported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-18T13:47:21Z.
Windows title run on head
c92d72cc1(the PR has since been rebased to802150f9e; the diff against the merge base is identical apart from hunk offsets, so this applies to the new head unchanged): Windows 11 Pro 26220, RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2.0 r7, Release. Stacked asmain0d078f75d(which has #7132) + #65437bfb645ff+ this PR. The only conflict was the debt file, wheremain's new Polygon entry sits next to this PR's entry; I kept both. Full build: no failures.Ruffle (PPSA68091), Cross to start the demo, 120 s,
ANYPS5_NO_SHADER_CACHE=1:main+ #6543writes to a resident multisampled DCC target or its metadata are not implemented; with #6869's text:(DCC range 0x4004606000+0x14000, 4 samples)So your Linux result reproduces on Windows/NVIDIA. One question: from the demo start to the limit, every frame dump is uniform white (mean 255 per channel, cursor only), 13 and 11 dumps, and the screenshot at the limit looks the same. White is the
0xc0(1111) clear that this PR takes from Ruffle's0xc0c0c0c0fill. Does the demo show content on Linux, or is it white there too?Tests:
agc_driver_msaa_dcc_clear_{2,4,8},agc_driver_msaa_dcc_state,agc_driver_clamped_global_fillandagc_driver_graphicspass 3 of 3 each.DccMetadata.hpp/.cppandMultisampleTarget.cppback tomain+ #6543 and kept the test.msaa_dcc_clear_{2,4,8}then fail 3 of 3 withwrites to a resident multisampled DCC target or its metadata are not implemented. With the PR restored they pass again.msaa_dcc_clear_8is flaky here. It failed 3 times in 113 single runs;clear_2andclear_4passed 20 of 20. The failure isa write to resident multisampled DCC metadata that is not a full fast-clear fill was not refused. I added a local print to the test: the failing case is mode 5 (the fill recorded withVulkanDevice::FillBuffer), with CMASK, at 8 samples. The test expectedrequires watched guest memory, and the draw threwwrites to a resident multisampled DCC target ...instead.Watched()check right after recording races with the watch state at the draw.hardware_oracle_comparehit its 20 s limit once and passed on rerun. GPU pass-R '^agc_driver_': 529 of 531 pass, 2 skipped, none failed.check_conventions.pyandgit diff --checkare clean.Not checked: AMD, Intel, Linux, Rush 2, Wave Race 64.
Written with Claude Code assistance (validation by a subagent, reviewed in this session).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T14:17:05Z.
Thanks @screamm for the Windows run, and for narrowing the
clear_8failure down to mode 5.White frames. It's white on Linux too. On
main385ed71f2c+ #6543 + this PR, every frame dumped after the demo starts is uniform white apart from the cursor (17 of 35 dumps in 60 s). That comes from the demo's SWF, not from the clear. Ruffle's own log (/data/ruffle/ruffle.log) says of the built-in demo:The demo is a 21-byte stub in the eboot (at file offset 0x140ec31:
FWS, version 10, header length 21, an empty frame RECT). The stage has nothing on it, so Ruffle draws only Flash's default white background, which is the1111clear.To check that drawn content survives the absorbed clear, I gave Ruffle a 180-byte SWF I generated. It has a white 960x540 stage with three rectangles: red 200x150, blue 300x200 and green 150x150. The red one moves between x = 100 and x = 300 on alternate frames (2 frames at 2 fps). Copied to
/data/ruffle/games, it appears in the library, and Ruffle loads it as960x540 @ 2 FPS. 60 s with Cross presses, every 30th frame dumped:main+ #6543writes to a resident multisampled DCC target or its metadata are not implemented, before the SWF's first frame is presentedThe cover Ruffle saves from its own readback (
/data/ruffle/covers/rects.png) shows the same picture.The
clear_8failure. I think this comes from Windows watching settled imports again:rewatchSettledImportscallsGuestMemory::Rewatch, and only the Windows build does anything there. The twoFillBuffercalls make two imports. If a settle poll watches the DCC import again before the CMASK import,absorbDccFillreturns at the CMASK'sWatchedcheck.checkDccCurrentthen reached the DCC range first, which was watched again and changed, so it threwwrites to ...instead of the unwatched-range message. I've pushed two commits:checkDccCurrentchecks that every range is watched before it checks any of them for writes. An unwatched range is now always reported asrequires watched guest memory.SetImportWatch, asDccKeysFirstWriteandDispatchMoveDepthdo), and it requires the metadata to still be watched after the fill. So the absorbed GPU fill is checked on every driver, including ones whose imports are compared, like Intel's ANV. A new mode 6 runs the same fill with imports left unwatched and must be refused. On Windows, where a settled import can be watched again before the draw, an unwatched GPU fill may now either be refused withrequires watched guest memoryor be drawn, and a drawn one goes through the resolve check.Tested on head 5be36f095e:
agc_driver_msaa_dcc_clear_{2,4,8}pass 20 of 20 each. They also pass 5 of 5 each withAPS5_WRITE_WATCH_IMPORTS=unwatch, which makes the CPU-fill cases run with imports compared. The 28 tests matchingmsaa|multisample|dcc|cmask|fmask|alpha_to_coverage|fillpass. A temporary print (not part of the PR) shows that mode 5 takes the fill and passes the resolve check and that mode 6 is refused, at 2, 4 and 8 samples, with and without a CMASK.host imports resolve write protection: yes):clear_{2,4,8}pass 3 of 3 each.I haven't run it on Windows. With these commits, your failing 8-sample case should either report
requires watched guest memoryor draw and pass the resolve check.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T18:30:15Z.
Title data on the current heads, now that #7253 is in
main:main5057673804+ #6543 (7bfb645ffa) + this PR (5be36f095e). Rush 2 Recompiled runs to the 60 s limit and ends on its launcher. Wave Race 64 Recompiled presents until a segfault in guest code at 48 s. With #6543 alone, both stop at 2 s onwrites to a resident multisampled DCC target or its metadata are not implemented. The description has the details.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T21:01:19Z.
Rebased onto
main6e27fc8f07(58c28d9caa). The only conflict was next tomain's new view-type parameter ofMultisampleTarget::Sampled, which sits just below this PR'sNoteMetadataFill, and both are kept. On the rebased headagc_driver_msaa_dcc_clear_{2,4,8}pass 3 of 3, and the 25 tests matchingmultisample|dcc|cmask|fill|msaapass.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T01:21:37Z.
Rebased onto
main0c25997a5a(cbae9e7af5). There were two conflicts:NoteColorMetadataFill,main's new HTILE check comes first, then this PR's DCC branch. That's the same resolution @wachi35676 used.ApplyFastClear,main'sKeep()from the multisample retirement change (785f8f7bcf) now runs after both the refill path and the CMASK path, since both record commands against the image.agc_driver_msaa_dcc_clear_{2,4,8}pass 3 of 3, and the 27 tests matchingmultisample|dcc|cmask|fill|msaapass.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T06:10:33Z.
Review: COMMENTED
Apple GPU / MoltenVK run of the new
DccRefillTests, as another vendor next to the NVIDIA, AMD and Intel runs.Machine: Apple M2 Max, macOS 27.2, x86_64 build under Rosetta 2. Head
cbae9e7af. Method: macos-port platform (maina373e85e5+ the macOS series) + this PR's diff, not main. Stacked with #7600 (038f050c7) in the same build.agc_driver_msaa_dcc_clear_2agc_driver_msaa_dcc_clear_4agc_driver_msaa_dcc_clear_8clear_8skips cleanly ("the device lacks the requested multisample color attachments"): MoltenVK reportsframebufferColorSampleCounts1/2/4 only on this GPU, so the 8x refill path has no coverage on Apple.tests/execution/AlphaToCoverage.cppon the base,clear_2andclear_4fail on both drivers withwrites to a resident multisampled DCC target or its metadata are not implemented.^agcsuite (excluding flip/display/lds_atomics64,-j1, 30 s timeout): failure list identical to the base on both drivers (known MoltenVK capability gaps), no new failures.GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T06:22:01Z.
@jotitadev thanks for the Metal runs. The 8x skip is useful to know: MoltenVK's 1, 2 and 4 color sample counts leave that refill path without Apple coverage. It's in the description now, along with the red check on both drivers.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T12:35:44Z.
Rebased onto
mainb106f6f8c0(50264ab548) after #6869 changedcheckDccCurrent. The refill's shortened range list now goes throughrequireDccRange, and the watch check still covers every range before any write check. The 39 DCC/MSAA/fill tests pass, this PR's 8 tests pass 3 of 3, and the 1.4.363 validation layer reports nothing on either side. The debt line is also cut to the gap.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T18:20:02Z.
Checked the absorbed DCC/CMASK fill path against the refusals it keeps (partial fill, other keys, CMASK-only, color writes), the watch check running over every range before any write check, and the new
DccRefillTestscases (GPU-recorded and CPU fills, watched and unwatched imports); the independent Windows, Intel/NVIDIA and Metal runs in the thread cover the drivers. Merged.