Skip to content

fix(agc): preserve resident multisample baselines before unwatch - #16483

Merged
oneandonlydean merged 7 commits into
boykopovar:mainfrom
cookie42073-cmd:fix/msaa-unwatch-12522-current-20261106
Nov 17, 2026
Merged

oneandonlydean merged 7 commits into
boykopovar:mainfrom
cookie42073-cmd:fix/msaa-unwatch-12522-current-20261106

Conversation

@cookie42073-cmd

Copy link
Copy Markdown
Contributor

What

Preserve an already resident multisampled DCC target when a host import removes write watching from its guest memory. Previously, later reuse could refuse unchanged data because the original watch proof was gone.

The shared unwatch callback now saves a complete baseline for each affected tracked range only when its write generation, mapping, metadata and pending-write checks still prove it current. Owner tracking, an import preflight and a publication hold coordinate target registration with concurrent imports while preserving GPU/import lock order. Failed proof and changed data retain their refusal paths. Two focused fixtures cover preservation/refusal cases and publication/import ordering.

This addresses the resident-MSAA DCC portion of #12522; it does not close that multi-failure issue. Same-value CPU stores after watch removal remain unobservable by byte comparison alone. The original contribution 0635d91d793758ee6705fe33a996acfe92191b96 and Blazing Cook's authorship are retained in history.

Tested

Native AGC execution fixtures on the same Windows 11 Pro machine, OS 10.0.26300, GCC 15.2 Release. Tests ran serially on each GPU listed below.

  • Main: 6fd097073810784f8e3455d36320542cd59252bf.
  • Candidate, before and after negative controls: d0aced879ffb5a0ba1922b819de013cb4d46c2de.
GPU Main: 17 common cases Initial candidate: 19 cases Restored candidate: 19 cases
NVIDIA GeForce RTX 4070 SUPER 17 passed 19 passed 19 passed
Intel UHD Graphics 770 14 passed, 2 failed, 1 skipped 17 passed, 1 failed, 1 skipped 17 passed, 1 failed, 1 skipped

Both new tests, agc_driver_msaa_dcc_unwatch and agc_driver_msaa_dcc_publish_gate, pass on both GPUs in both candidate runs. Intel agc_driver_msaa_dcc_clear_2 changes from the watched-memory reuse refusal to PASS. Every other common passing case remains passing.

Intel agc_driver_native_depth_publication still fails with native D32S8 publication lost live samples, HTILE, padding or guest writes, identically on main and both candidate runs. Intel agc_import_settle_initial_dcc still skips because no second settle queue is available; the skip is not counted as a pass. These separate outcomes are unchanged by this patch.

Runs used ctest -V, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. Verbose logs confirm the selected GPU and actual Khronos layer insertion for every invocation; the new cases and controls also enable APS5_ASSERT_GPU_LOCK=1. There are no VUID/SYNC diagnostics or new validation errors/warnings. Three pre-existing loader errors for missing third-party implicit-layer manifests remain identical; validation still loads. The logs are not error-free.

Three single-mechanism mutations were separately built and exercised on both GPUs:

Disabled mechanism NVIDIA failure Intel failure
MSAA snapshot callback Unchanged-data preservation assertion Same assertion
Publication hold Import did not wait for publication Initial DCC watched-memory refusal
MSAA import-preflight result Import did not defer after publication Exact GPU/import lock-order assertion and deliberate abort

All six controls fail for their intended mechanism, without skip, timeout, device loss or validation diagnostic. Both source files were restored byte-for-byte, all four targets rebuilt, and the complete 19-case selection repeated on both GPUs. Independent review audited all 116 test invocations and all 47 original evidence files.

Tracked AnyPS5 source is clean for the unmutated runs. The checkout retains an identical QuickJS submodule dirty marker from 153 missing JavaScript fixtures in nested test262, with its commit pin unchanged. QuickJS/NKWebKit/test262 are not inputs to these four AGC targets; this is not a globally clean recursive-checkout claim.

The candidate cleanly merges with newer main 9e432fbfa47ea68a70cfc10c507d9b252684a891 in a source-only preview. No AGC production file changed between tested main and that preview base. The combined newer tree was not runtime-tested. The pre-push conventions check passed without warnings. No title, native-console, Linux/macOS, AMD, performance or full-suite result is claimed.

Overlap review: the official scan against main 578dd09c42edb71eb17e9ad7b6fa7fea7978e7ff examined 1,901 open PRs and 164 relevant merge comparisons. It exited 2, reporting five confirmed conflicts and 62 unresolved shared-file comparisons. All 67 have explicit pinned manual dispositions in the evidence; no duplicate implementation or prerequisite for this standalone change was found. The official result remains exit 2.

Existing author coordination supports a separate main-based fix. For future combinations, preserve DCC owner/refusal tracking alongside the plain-color publication stack (#6987/#6989/#6995/#7002). #13963 ordering is storage-result flush, then DccPublication, then TargetsLock. #10233's two-sample native FMASK expansion must extend both the publication span and owner-bearing guard; #6808's older blanket retirement must not replace current DCC lifetime/refusal rules. These are future integration requirements, not dependencies or tested combinations.

Logs, receipts, manifests and independent reviews. The public manifest maps normalized/redacted evidence to original hashes; receipt log hashes refer to the originals.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.01 (Windows 32.0.16.2101); Intel UHD Graphics 770, driver 32.0.101.7088; both Windows 11 Pro 10.0.26300.
  • AI-assisted: yes

@JJenkx

JJenkx commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Windows check of head d0aced879f, merged onto main c643163045 (94d83ec29e, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, Radeon RX 6700 XT, AMD driver 26.10.1. Run through the Windows test queue with ANYPS5_REQUIRE_VULKAN=1 and Vulkan validation layers 1.4.363. The hosted Windows check does not run these GPU tests on pull requests.

  • agc_driver_alpha_to_coverage, _sample_mask_export and _state, plus agc_driver_msaa_dcc_publish_gate and agc_driver_msaa_dcc_unwatch (from agc_driver_alpha_to_coverage_tests and agc_driver_graphics_tests, both rebuilt from this merge), pass in 3 of 3 runs on the real device, none skipped.
  • The Vulkan device was created in each run, and there were no VUID- errors.

AI-assisted: yes.

@milescoviello

milescoviello commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Linux arm with the validation layer, for the Windows runs above: Ubuntu 26.04, RTX 4070 Ti, NVIDIA 615.71.09, GCC 15.2, Khronos validation 1.4.363. I compared main 6693b47b1f with head d0aced879f merged onto it (ea5c030d7b, clean merge) on ^agc_driver_(msaa_dcc_|dithered_alpha|two_sample_|alpha_to_coverage). On Linux the unwatch comes from userfaultfd, so this exercises a different write-watch backend than Windows.

  • main: 13 pass and 3 skip. The Vulkan device was created in 14 of the 16, and the log has no VUID- line.
  • Merge: 15 pass and the same 3 skip. The 15 include the new agc_driver_msaa_dcc_unwatch ("partial range, writes before/during/after, repeated unwatch and metadata mutation controls passed") and agc_driver_msaa_dcc_publish_gate. The device was created in 16 of the 18, and the log has no VUID- line, so the head adds none.
  • Skipped on both sides: agc_driver_msaa_dcc_compared_import_2/4/8.

Correction (11-10): the Khronos validation layer these runs used (1.4.363) was not installed when they ran, and AnyPS5's test programs don't print the loader's "was not found" error. So the "no VUID-" result above validated nothing. Re-run (11-10): with Khronos validation 1.4.341 (Ubuntu) and VK_LOADER_DEBUG=layer, on current main b8194198cf and on this head d0aced879f merged onto it (8c84b2e732, clean merge), with the same test pattern. On main, 13 pass and 3 skip, the loader shows the layer inserted 14 times (14 Vulkan devices), and there are no VUID- messages. On the merge, 15 pass and the same 3 skip (agc_driver_msaa_dcc_compared_import_2/4/8), the layer is inserted 16 times (16 devices), and there are no VUID- messages. So the head adds none.

AI-assisted: yes (Claude Code)

@Ethan-Hainline

Copy link
Copy Markdown
Contributor

Additional AMD data point on head d0aced879f, on a different architecture and driver from the Windows RX 6700 XT run above: Windows 11 Pro 10.0.26300, Ryzen 5 7530U, Radeon Vega 15e7 (GCN, not RDNA2), AMD driver 31.0.21924.4004, WinLibs GCC 16.2.0, Release, ANYPS5_GPU=AMD ANYPS5_REQUIRE_VULKAN=1. Khronos validation was not installed on this host.

Selection ^agc_driver_(msaa_dcc_(unwatch|publish_gate|srgb_clear_[248]|clear_[248])|dithered_alpha_to_coverage|two_sample_dithered_alpha_to_coverage|alpha_to_coverage_sample_mask_export|two_sample_alpha_to_coverage_sample_mask_export)$: 12 tests, 9 passed, 3 failed, none skipped.

  • agc_driver_msaa_dcc_unwatch: pass 3 of 3, printing multisample DCC unwatch: partial range, writes before/during/after, repeated unwatch and metadata mutation controls passed.
  • agc_driver_msaa_dcc_publish_gate: pass 3 of 3. Host imports are available on this driver.
  • agc_driver_msaa_dcc_clear_{2,4,8}, the dithered cases and the sample-mask cases: pass.

The three failures are agc_driver_msaa_dcc_srgb_clear_{2,4,8}, all with AGC graphics: an sRGB DCC import or resolve changed an undrawn sample endpoint. Control: I restored the four production files and AlphaToCoverage.cpp to current main d78531d356 (newer than the body's 6fd097073810; the four reverted files are the whole production diff), rebuilt, and the same three fail identically. So this is pre-existing on this Vega/driver combination, not introduced by the PR. The Windows RX 6700 XT run above did not include these three sRGB cases.

Not run in this selection: native_depth_publication, import_settle. AI-assisted verification.

@cookie42073-cmd

Copy link
Copy Markdown
Contributor Author

Thanks for the Vega results. Both new fixtures pass 3/3 at d0aced879f, and your control with main’s production files leaves the same three sRGB failures. I’ll record these as reported baseline failures on this Vega/driver combination, with Khronos validation not installed.

Those tests and that assertion have prior history in #14380. That investigation narrowed its failure to B8G8R8A8_SRGB, DCC keys 0x40/0x80, and dccAlphaOnMsb=false, with red and blue bytes swapped. The same binaries subsequently passed on the Radeon 860M after its driver update: controlled retest.

The assertion alone does not establish the same mechanism on Vega. If that case is investigated further, the useful next datum is the first failing format, DCC key, alpha placement, and actual/expected texel bytes, linked back to #14380. Your current control supports keeping these failures separate from the unwatch change.

AI-assisted review.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 19686 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L1348-1349
PR 22018 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L1767-1771

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.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10249 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10743 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 12746 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13251 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13796 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13928 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13929 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 13963 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 15136 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 15621 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 17915 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 17956 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 18173 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20315 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp

@Ethan-Hainline

Copy link
Copy Markdown
Contributor

Validation addendum: agc_driver_msaa_dcc_srgb_clear_4 still fails on Vega (main 4204951e77) with Khronos validation 1.4.363.1 loaded, and the log has zero VUID-/Validation messages. So no API misuse is flagged; this is consistent with the driver-side sRGB DCC resolve explanation. AI-assisted.

@gabichuuuuu gabichuuuuu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran d0aced879f merged on main 302864d on Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Khronos validation layer 1.4.368), ctest -R 'alpha_to_coverage|agc_driver_msaa_dcc' -V.

main (17 tests) change without the two Texture.cpp hook calls (19) change, 2 runs each (19)
NVIDIA 17/17 14/19 19/19
Intel 16/17 14/19 19/19
  • For the middle column I kept the PR whole and removed only MultisampleDccUnwatchLocksGpu from UnwatchHookLocksGpu and SaveMultisampleDccBeforeUnwatch from SaveBeforeUnwatch. On both GPUs, the new msaa_dcc_unwatch and msaa_dcc_publish_gate fail, and so do msaa_dcc_clear_2/4/8 with "multisampled DCC target reuse requires watched guest memory". With the calls back in, all of them pass every time.
  • On main, agc_driver_msaa_dcc_clear_2 failed once on the Intel iGPU with the same "requires watched guest memory" message (color range, 2 samples). The change passed it in both Intel runs. I ran main only once, so I can't say how often it fails there.
  • msaa_dcc_compared_import_2/4/8 skip on both GPUs in every build, so this run doesn't cover them.
  • The layer was inserted in every device test. No log has was not found but was requested by env var VK_INSTANCE_LAYERS, and no log on either side has a VUID-. To be sure validation messages reach these logs, the same layer with best practices on printed 28 BestPractices- warnings into an agc_driver_recorder log on each GPU.

AI-assisted: yes.

@oneandonlydean oneandonlydean self-assigned this Nov 9, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 13, 2026
…ed entries, move the debt edits into a fragment
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 16, 2026
@domx4q

domx4q commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Ran the 19-case set from the Tested section with the Khronos validation layer on Linux and an NVIDIA GPU; the posted NVIDIA runs are on Windows, and the Linux one is for an older head.

Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor 0x10de, device 0x2684, Ada, subgroup 32), proprietary driver 620.70.06, Vulkan 1.4.357, Khronos validation layer 1.4.363.1. Head 335f92aa15 merged onto main f0c01bc69d with --no-ff, clean merge. Main baseline is a Release build of f0c01bc69d on the same machine.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer \
ctest --test-dir build -R '^(agc_driver_(.*alpha_to_coverage.*|msaa_dcc_.*|native_depth_publication)|agc_import_settle_initial_dcc)$' -V
main f0c01bc69d this PR
Result 15 passed, 4 skipped, of 19 17 passed, 4 skipped, of 21
Insert instance layer "VK_LAYER_KHRONOS_validation" 16 18
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0
VUID- none none

agc_driver_msaa_dcc_unwatch and agc_driver_msaa_dcc_publish_gate are new and do not exist on main. Both pass with APS5_ASSERT_GPU_LOCK=1: multisample DCC unwatch: partial range, writes before/during/after, repeated unwatch and metadata mutation controls passed and multisample color publication: no-GPU import waited, deferred and retried under the GPU lock.

The same four tests skip on both sides because of the device, not the change. The three agc_driver_msaa_dcc_compared_import_{2,4,8} print skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them, and agc_import_settle_initial_dcc prints skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows. agc_driver_native_depth_publication and the alpha-to-coverage and other msaa_dcc_* cases pass on both sides, and every device selection picked the RTX 4090.

No new VUID- errors; the two new tests and all common cases that run on this device pass on Ada.

AI-assisted: yes (Claude Code)

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@cookie42073-cmd the test this PR added, agc_driver_msaa_dcc_unwatch, fails on other NVIDIA cards from this very commit (8dca522), see #22931 and #22930. Your Tested section has it passing on an RTX 4070 SUPER.

  • RTX 2060 (Turing), driver 621.24, Windows 11 build 26300: fails 3 of 3 at 8dca522 and 5 of 5 on main, with DCC unwatch did not preserve unchanged data or refused a real write incorrectly.
  • RTX 5080, driver 610.88: fails 4 of 4 with the same message.
  • RTX 4060 Laptop, driver 617.14: the 8-sample FMASK case is refused with writes to a resident multisampled DCC target or its metadata are not implemented.
  • Intel Arc and AMD iGPUs pass on the same machines. agc_driver_msaa_dcc_publish_gate from this PR passes.

Your mutation table makes the unchanged-data assertion the NVIDIA failure when the MSAA snapshot callback is disabled, so the callback may not take effect on these cards. Can you look and send a fix? If it needs a card you do not have, a run on the RTX 2060 or 5080 from the reporters is available.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@cookie42073-cmd one more reproduction for the same test, from our own machine: an RTX 4050 Laptop (Windows driver 32.0.16.1047, about 610.47) on main 8dbb3bf fails agc_driver_msaa_dcc_unwatch, so it is not the skip path. It prints AGC graphics: DCC unwatch did not preserve unchanged data or refused a real write incorrectly and [write-watch] host imports of write-watched memory keep the write watch: yes (4096 of 4096 scratch pages reported written at the import, 0 by its 4-byte settle read, ...).

The same file passes publish_gate, srgb_clear_2/4/8, clear_2/4/8 and msaa_dcc_state; compared_import_2/4/8 skip. We can run a candidate fix on this card.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@cookie42073-cmd, a follow-up on #16483 from #22930 and #22931, which are one failure. On an RTX 4050 (Windows), main 0af6acc, agc_driver_msaa_dcc_unwatch modes 0 to 6 behave as expected. Only mode 7 (8 samples, FMASK unwatched) is refused with "writes to a resident multisampled DCC target or its metadata are not implemented (DCC range 0x200200000+0x1000, 8 samples)".

So on NVIDIA something marks the DCC metadata page as written in the 8-sample FMASK path, after the FmaskDecompress pass, although the test only unwatches the FMASK block.

Two questions: which step writes the DCC metadata there, and does it take a different path on NVIDIA (for example an 8-sample format or a storage-image fallback)? A fix PR is welcome and we can run it on our 4050. We are keeping the deadline at the end of 21 Nov NZ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants