fix(agc): import multisampled DCC register clears #8123

Merged
JJenkx merged 2 commits from upstream-pr/8123 into main 2026-11-01 23:29:51 +00:00
JJenkx commented 2026-10-19 22:51:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-19T22:51:17Z.


What

Uniform multisampled DCC key 0x20 currently throws during initial color import. Route it through the existing exact CB_COLOR_CLEAR_WORD0/1 conversion. Mixed metadata, unsupported CMASK, texels over 64 bits and formats without an exact conversion still throw. No title-specific path is added.

The key follows Mesa's GFX8–10 GFX8_DCC_CLEAR_REG definition in ac_descriptors.h. Console hardware behavior remains unmeasured and recorded in debt. This refreshes the previously unpublished local fix tracked in #7382.

The initial-import regression covers 2/4/8 samples, both alpha placements and absent/clear/expanded CMASK, using nontrivial RGBA16F register values. Existing resolve checks cover untouched samples and preservation of a live image after register changes.

Tested

Latest conflict refresh, 2026-10-26: head 3634b97d970eb6aed0dd4a961cb2ef72921be551, two authored commits on tested main 1061954c7e559bf3495345a4920d0d33851967d3. The production change remains the single 0x20 register-clear case. The test/debt conflicts preserve main's comp-to-single path, Linux compared-import probe behavior and platform-specific write-watch rules, together with this PR's initial-import and resident-refill clear checks.

Linux RX 6650 XT/RADV, required Vulkan, shader caches disabled, Khronos validation: main, candidate and restored candidate each pass the state plus 2x/4x/8x clear selection 4 groups × 3 (12 passes), zero skips or VUIDs. Each physical clear group proves three RX 6650 XT selections and three actual instance/device validation-layer insertions. The state group is a CPU check.

Two production-only negative controls retain the candidate tests. Removing initial 0x20 support fails all three clear tests at unsupported initial uniform fast clear; rejecting only 0x20202020 in resident refill fails all three at the resident metadata write. In each control the state test passes. Restoring the candidate passes 12/12 again, and its library hash is identical to the first candidate. Distinct source/library hashes and raw logs are attached.

Current main accepts and tests the Linux unwatched compared-import path; the older rejection expectation below has been superseded. Windows continues to exclude its unsupported unwatched mode. No new Windows, console or title run was performed. Conventions pass with zero errors and one existing-style debt-length warning. Final fetched main bf77a9e9cba4b02c358779b35295176dd9cae164 changes none of this PR's three files and merges cleanly; GPU results remain pinned to the stated tested base.

Patch/source manifest, semantic conflict preservation, build logs, all five test arms, hashes and shared-launch receipts. SHA-256: cc986714a8406b790f8304c6e4efc7430badc5e83731b4fb9145e8e7fa52d1e8; downloaded copy verified.

Earlier qualification:

Arch Linux, AMD Radeon RX 6650 XT (RADV NAVI23), Mesa 26.2.4-arch1.1, Ryzen 9 7950X. Refreshed onto main 3b5a24c0d611af1fc7ddd843dfa66fd6563a5dc5, candidate 6f621e23c62368534baf3660c31c7a437bdc5403 (two commits, no merge commits). Main and candidate each pass the same four focused tests three times: 12/12, no skips and zero VUID- errors. Logs confirm actual Khronos 1.4.363 instance/device insertion. The layer is not installed in this host's default search path; earlier path-less Linux logs cannot establish validation-layer coverage and are superseded by these runs.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
VK_ADD_LAYER_PATH=/mnt/sas-ssd/AnyPS5-work/workspace/doom-videoout/vulkan-layer/usr/share/vulkan/explicit_layer.d \
VK_LOADER_DEBUG=warn,error,layer \
ctest --test-dir BUILD -R '^agc_driver_msaa_dcc_(state|clear_[248])$' -V

The added resident-refill regression covers whole-range 0x20202020 metadata writes by CPU and GPU, with/without CMASK, at 2x/4x/8x. It checks nontrivial RGBA16F clear-register values in untouched pixels and the expected sample blend in the next draw's scissor. Existing partial-write and unsupported-clear rejection cases remain covered. That older qualification expected Linux unwatched GPU metadata to be rejected; the latest refresh above instead preserves and tests current main's accepted compared-import path. Windows excludes that unwatched mode as before.

Independent Windows validation by @TheSovietWaffle (report): Windows 10 Pro 22H2, WinLibs GCC 15.2.0 Release, candidate d5c07e844, RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU (1002:164e, driver 32.0.21045.5002). The 2x and 8x clear tests pass 3/3 on each GPU. The 4x test fails 3/3 on both candidate and their main 340247a08 baseline with multisampled DCC target reuse requires watched guest memory; the contributor identifies the subsequently fixed #8103/#8172 issue. These are contributor-reported results, not a claim that the full Windows test set passes.

Independent follow-up by @wachi35676 (report): Windows 11 (26300), WinLibs GCC 15.2.0 Release, main 02fb1ce53 with candidate d5c07e844 merged, RTX 5070 Ti (NVIDIA 617.42) and AMD Radeon iGPU (reported AMD driver 2.0.353). With ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, DCC state and 2x/4x/8x clear tests pass 3/3 on each GPU; this base includes #8172. With only the PR's tests on main, all three clear tests fail at the unsupported initial uniform fast clear, while state passes. The related 58-test set passes on both GPUs apart from the reported NVIDIA stencil-export skip; their main baseline had the same skip and one write-tracking failure under parallel load that passed 3/3 serially. These are contributor-reported results without the validation layer or title testing. That contributor run predates the new refill regression; it covers initial import only. The newly added refill test has been run locally on Linux, not yet repeated on Windows.

Initial-import negative control f643667b3b: keep the new tests and remove only the production case 0x20u line. All three clear tests fail three times (9/9 expected failures) with initial multisampled DCC contents are not a supported uniform fast clear, while DCC state passes 3/3. That control stops before resident refill, so it does not establish refill coverage.

Refill-specific negative control 6da249b146: retain initial 0x20 support and reject only 0x20202020 in absorbDccFill. The 2x/4x/8x tests each fail at writes to a resident multisampled DCC target or its metadata are not implemented, after initial import succeeds. The same tests pass on candidate 6f621e23c6. This confirms the added regression reaches resident refill. Actual Khronos insertion is confirmed in all three negative-control executions, with no missing-layer errors or VUID- messages.

PPSA28795 startup evidence on a separate integration based on main 567c5fd630: diagnostic revision f30fa236f2 aborts with key=0x20 extent=1920x1080 samples=8 format=122 elementBytes=4 dccBytes=81920 cmaskKey=0xcc cmaskBytes=24576. Adding this support at integration 65839aa209 passes that stop, displays loading and closes normally (exit 0, PID gone, kernel setting restored). This integration also includes ten host-import commits; it is not an isolated game A/B. No new gameplay or speed claim. Earlier interactive Snoopy evidence and remaining work are in #7382.

Full focused logs, negative control and native integration evidence.

New matched main/candidate logs, both negative controls, exact patch and source manifest.

Conventions rerun on this revision: zero errors (existing long debt entry warning). A local merge-tree check against main 557682ca44b08c51e5a51a42ecb2d8a9e3d41f9c is clean. The earlier tools/pr_overlap.py run listed stale branches with shared files it could not compare; its earlier manual diff review found no equivalent register-clear implementation. #7600 handles comp-to-single key 0x10, a different path. Its source/debt edits are adjacent: this PR has no implementation dependency on it and can rebase if it lands first.

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: PPSA28795 #7382 (initial DCC register-clear stop; full gameplay needs other changes listed there)
  • GPUs tested: AMD Radeon RX 6650 XT, RADV 26.2.4-1, Arch Linux; contributor-reported RTX 3080, NVIDIA 617.42, and AMD RDNA 2 iGPU (1002:164e), 32.0.21045.5002, Windows 10 Pro 22H2 (partial pass/baseline failure detailed above); contributor-reported RTX 5070 Ti, NVIDIA 617.42, and AMD Radeon iGPU, reported driver 2.0.353, Windows 11 26300 (no validation layer; details above)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4928459757 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8123). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-19T22:51:17Z. --- ### What Uniform multisampled DCC key `0x20` currently throws during initial color import. Route it through the existing exact `CB_COLOR_CLEAR_WORD0/1` conversion. Mixed metadata, unsupported CMASK, texels over 64 bits and formats without an exact conversion still throw. No title-specific path is added. The key follows Mesa's GFX8–10 `GFX8_DCC_CLEAR_REG` definition in [ac_descriptors.h](https://chromium.googlesource.com/external/gitlab.freedesktop.org/mesa/mesa/+/418c4cfa6708a0e0b1175e72fb8fd27d3ca1615a/src/amd/common/ac_descriptors.h#41). Console hardware behavior remains unmeasured and recorded in debt. This refreshes the previously unpublished [local fix](https://github.com/JJenkx/AnyPS5/commit/0562ea18739f33d72385fb2dbc12ad8517af9e91) tracked in #7382. The initial-import regression covers 2/4/8 samples, both alpha placements and absent/clear/expanded CMASK, using nontrivial RGBA16F register values. Existing resolve checks cover untouched samples and preservation of a live image after register changes. ### Tested <!-- codex-review-refresh-20261026-pr8123 --> **Latest conflict refresh, 2026-10-26:** head `3634b97d970eb6aed0dd4a961cb2ef72921be551`, two authored commits on tested main `1061954c7e559bf3495345a4920d0d33851967d3`. The production change remains the single `0x20` register-clear case. The test/debt conflicts preserve main's comp-to-single path, Linux compared-import probe behavior and platform-specific write-watch rules, together with this PR's initial-import and resident-refill clear checks. Linux RX 6650 XT/RADV, required Vulkan, shader caches disabled, Khronos validation: main, candidate and restored candidate each pass the state plus 2x/4x/8x clear selection **4 groups × 3 (12 passes)**, zero skips or VUIDs. Each physical clear group proves three RX 6650 XT selections and three actual instance/device validation-layer insertions. The state group is a CPU check. Two production-only negative controls retain the candidate tests. Removing initial `0x20` support fails all three clear tests at unsupported initial uniform fast clear; rejecting only `0x20202020` in resident refill fails all three at the resident metadata write. In each control the state test passes. Restoring the candidate passes 12/12 again, and its library hash is identical to the first candidate. Distinct source/library hashes and raw logs are attached. Current main accepts and tests the Linux unwatched compared-import path; the older rejection expectation below has been superseded. Windows continues to exclude its unsupported unwatched mode. No new Windows, console or title run was performed. Conventions pass with zero errors and one existing-style debt-length warning. Final fetched main `bf77a9e9cba4b02c358779b35295176dd9cae164` changes none of this PR's three files and merges cleanly; GPU results remain pinned to the stated tested base. [Patch/source manifest, semantic conflict preservation, build logs, all five test arms, hashes and shared-launch receipts](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr8123-head3634b97d-main106195-linux-refresh.tar.gz). SHA-256: `cc986714a8406b790f8304c6e4efc7430badc5e83731b4fb9145e8e7fa52d1e8`; downloaded copy verified. **Earlier qualification:** Arch Linux, AMD Radeon RX 6650 XT (RADV NAVI23), Mesa 26.2.4-arch1.1, Ryzen 9 7950X. Refreshed onto main `3b5a24c0d611af1fc7ddd843dfa66fd6563a5dc5`, candidate `6f621e23c62368534baf3660c31c7a437bdc5403` (two commits, no merge commits). Main and candidate each pass the same four focused tests three times: **12/12**, no skips and zero `VUID-` errors. Logs confirm actual Khronos 1.4.363 instance/device insertion. The layer is not installed in this host's default search path; earlier path-less Linux logs cannot establish validation-layer coverage and are superseded by these runs. ```sh ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \ VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \ VK_ADD_LAYER_PATH=/mnt/sas-ssd/AnyPS5-work/workspace/doom-videoout/vulkan-layer/usr/share/vulkan/explicit_layer.d \ VK_LOADER_DEBUG=warn,error,layer \ ctest --test-dir BUILD -R '^agc_driver_msaa_dcc_(state|clear_[248])$' -V ``` The added resident-refill regression covers whole-range `0x20202020` metadata writes by CPU and GPU, with/without CMASK, at 2x/4x/8x. It checks nontrivial RGBA16F clear-register values in untouched pixels and the expected sample blend in the next draw's scissor. Existing partial-write and unsupported-clear rejection cases remain covered. That older qualification expected Linux unwatched GPU metadata to be rejected; the latest refresh above instead preserves and tests current main's accepted compared-import path. Windows excludes that unwatched mode as before. Independent Windows validation by @TheSovietWaffle ([report](https://github.com/boykopovar/AnyPS5/pull/8123#issuecomment-6285913020)): Windows 10 Pro 22H2, WinLibs GCC 15.2.0 Release, candidate `d5c07e844`, RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU (`1002:164e`, driver 32.0.21045.5002). The 2x and 8x clear tests pass 3/3 on each GPU. The 4x test fails 3/3 on both candidate and their main `340247a08` baseline with `multisampled DCC target reuse requires watched guest memory`; the contributor identifies the subsequently fixed #8103/#8172 issue. These are contributor-reported results, not a claim that the full Windows test set passes. Independent follow-up by @wachi35676 ([report](https://github.com/boykopovar/AnyPS5/pull/8123#issuecomment-6290669695)): Windows 11 (26300), WinLibs GCC 15.2.0 Release, main `02fb1ce53` with candidate `d5c07e844` merged, RTX 5070 Ti (NVIDIA 617.42) and AMD Radeon iGPU (reported AMD driver 2.0.353). With `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, DCC state and 2x/4x/8x clear tests pass 3/3 on each GPU; this base includes #8172. With only the PR's tests on main, all three clear tests fail at the unsupported initial uniform fast clear, while state passes. The related 58-test set passes on both GPUs apart from the reported NVIDIA stencil-export skip; their main baseline had the same skip and one write-tracking failure under parallel load that passed 3/3 serially. These are contributor-reported results without the validation layer or title testing. That contributor run predates the new refill regression; it covers initial import only. The newly added refill test has been run locally on Linux, not yet repeated on Windows. Initial-import negative control `f643667b3b`: keep the new tests and remove only the production `case 0x20u` line. All three clear tests fail three times (9/9 expected failures) with `initial multisampled DCC contents are not a supported uniform fast clear`, while DCC state passes 3/3. That control stops before resident refill, so it does not establish refill coverage. Refill-specific negative control `6da249b146`: retain initial `0x20` support and reject only `0x20202020` in `absorbDccFill`. The 2x/4x/8x tests each fail at `writes to a resident multisampled DCC target or its metadata are not implemented`, after initial import succeeds. The same tests pass on candidate `6f621e23c6`. This confirms the added regression reaches resident refill. Actual Khronos insertion is confirmed in all three negative-control executions, with no missing-layer errors or `VUID-` messages. PPSA28795 startup evidence on a separate integration based on main `567c5fd630`: diagnostic revision `f30fa236f2` aborts with `key=0x20 extent=1920x1080 samples=8 format=122 elementBytes=4 dccBytes=81920 cmaskKey=0xcc cmaskBytes=24576`. Adding this support at integration `65839aa209` passes that stop, displays loading and closes normally (exit 0, PID gone, kernel setting restored). This integration also includes ten host-import commits; it is not an isolated game A/B. No new gameplay or speed claim. Earlier interactive Snoopy evidence and remaining work are in #7382. [Full focused logs, negative control and native integration evidence](https://github.com/JJenkx/AnyPS5/releases/download/game-library-checks-20261016/sync186-msaa-dcc-register-clear-validation.tar.gz). [New matched main/candidate logs, both negative controls, exact patch and source manifest](https://github.com/JJenkx/AnyPS5/releases/download/game-library-checks-20261016/20261021-pr8123-resident-refill-validation.tar.gz). Conventions rerun on this revision: zero errors (existing long debt entry warning). A local merge-tree check against main `557682ca44b08c51e5a51a42ecb2d8a9e3d41f9c` is clean. The earlier `tools/pr_overlap.py` run listed stale branches with shared files it could not compare; its earlier manual diff review found no equivalent register-clear implementation. #7600 handles comp-to-single key `0x10`, a different path. Its source/debt edits are adjacent: this PR has no implementation dependency on it and can rebase if it lands first. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: PPSA28795 #7382 (initial DCC register-clear stop; full gameplay needs other changes listed there) <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: AMD Radeon RX 6650 XT, RADV 26.2.4-1, Arch Linux; contributor-reported RTX 3080, NVIDIA 617.42, and AMD RDNA 2 iGPU (1002:164e), 32.0.21045.5002, Windows 10 Pro 22H2 (partial pass/baseline failure detailed above); contributor-reported RTX 5070 Ti, NVIDIA 617.42, and AMD Radeon iGPU, reported driver 2.0.353, Windows 11 26300 (no validation layer; details above) <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
TheSovietWaffle commented 2026-10-20 07:38:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TheSovietWaffle on 2026-10-20T07:38:34Z.


Tested on RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU (1002:164e, 32.0.21045.5002), Windows 10 Pro 22H2, WinLibs GCC 15.2.0, Release, head d5c07e844. agc_driver_msaa_dcc_clear_2 and _8 pass 3 of 3 on both GPUs. _4 fails 3 of 3 on both with multisampled DCC target reuse requires watched guest memory, but main 340247a08 failed the same way on both GPUs: that was #8103, fixed since by #8172, which this head predates. So nothing here points at this change.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285913020 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8123#issuecomment-6285913020). Originally posted by [TheSovietWaffle](https://github.com/TheSovietWaffle) on 2026-10-20T07:38:34Z. --- Tested on RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU (`1002:164e`, 32.0.21045.5002), Windows 10 Pro 22H2, WinLibs GCC 15.2.0, Release, head `d5c07e844`. `agc_driver_msaa_dcc_clear_2` and `_8` pass 3 of 3 on both GPUs. `_4` fails 3 of 3 on both with `multisampled DCC target reuse requires watched guest memory`, but main `340247a08` failed the same way on both GPUs: that was #8103, fixed since by #8172, which this head predates. So nothing here points at this change. AI-assisted: yes (Claude Code).
wachi35676 commented 2026-10-20 12:18:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T12:18:43Z.


The 4x case that failed in the earlier Windows run now passes, on a base that has #8172.

Setup: Windows 11 (26300), WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. The base is current main 02fb1ce53, and the candidate is that base with d5c07e844 merged (a clean merge). The GPUs are an RTX 5070 Ti (NVIDIA 617.42) and an AMD Radeon iGPU (AMD proprietary driver 2.0.353), both run with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.

  • agc_driver_msaa_dcc_state and agc_driver_msaa_dcc_clear_2, _4 and _8 pass 3 of 3 on each GPU. _4 is the case that failed before with multisampled DCC target reuse requires watched guest memory; #8172 changed ImportWatched and the DCC metadata generations in MultisampleTarget.cpp, and this change merges on top of that without conflict.
  • Negative control: I put only this PR's test change on main. Then clear_2, _4 and _8 fail on both GPUs with initial multisampled DCC contents are not a supported uniform fast clear (dcc_state passes).
  • Related set (58 tests matching msaa, multisample, alpha_to_coverage, stencil, label, tessellation, write_tracking, resident and so on, plus agc_driver_graphics): 58 of 58 pass on each GPU. On NVIDIA, agc_driver_stencil_ref_export skips because the GPU has no VK_EXT_shader_stencil_export. The main run of the same set had the same results, apart from one agc_write_tracking_metadata_commit failure under -j3 load ("an untouched leaf has a write stamp"), which then passed 3 of 3 serially.
  • 0x20 = GFX8_DCC_CLEAR_REG matches current Mesa src/amd/common/ac_descriptors.h (DCC_CODE(0x20) among the GFX8-10 codes).

Not tested: the validation layer, a title, and a later whole-range 0x20202020 metadata refill. absorbDccFill now accepts such a refill through the same switch and takes the clear words from the draw's target, and no test covers that path.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6290669695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8123#issuecomment-6290669695). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T12:18:43Z. --- The 4x case that failed in the earlier Windows run now passes, on a base that has #8172. Setup: Windows 11 (26300), WinLibs GCC 15.2.0, Release, `BUILD_TESTING=ON`. The base is current `main` `02fb1ce53`, and the candidate is that base with `d5c07e844` merged (a clean merge). The GPUs are an RTX 5070 Ti (NVIDIA 617.42) and an AMD Radeon iGPU (AMD proprietary driver 2.0.353), both run with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. - `agc_driver_msaa_dcc_state` and `agc_driver_msaa_dcc_clear_2`, `_4` and `_8` pass 3 of 3 on each GPU. `_4` is the case that failed before with `multisampled DCC target reuse requires watched guest memory`; #8172 changed `ImportWatched` and the DCC metadata generations in `MultisampleTarget.cpp`, and this change merges on top of that without conflict. - Negative control: I put only this PR's test change on `main`. Then `clear_2`, `_4` and `_8` fail on both GPUs with `initial multisampled DCC contents are not a supported uniform fast clear` (`dcc_state` passes). - Related set (58 tests matching msaa, multisample, alpha_to_coverage, stencil, label, tessellation, write_tracking, resident and so on, plus `agc_driver_graphics`): 58 of 58 pass on each GPU. On NVIDIA, `agc_driver_stencil_ref_export` skips because the GPU has no `VK_EXT_shader_stencil_export`. The `main` run of the same set had the same results, apart from one `agc_write_tracking_metadata_commit` failure under `-j3` load ("an untouched leaf has a write stamp"), which then passed 3 of 3 serially. - `0x20` = `GFX8_DCC_CLEAR_REG` matches current Mesa `src/amd/common/ac_descriptors.h` (`DCC_CODE(0x20)` among the GFX8-10 codes). Not tested: the validation layer, a title, and a later whole-range `0x20202020` metadata refill. `absorbDccFill` now accepts such a refill through the same switch and takes the clear words from the draw's target, and no test covers that path. AI-assisted: yes (Claude Code); results above were run on this machine.
JJenkx commented 2026-10-21 01:49:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T01:49:23Z.


Added the resident-refill regression in 6f621e23c6 and refreshed this branch onto main 3b5a24c0d6 without merge commits. Whole-range CPU and GPU 0x20202020 refills now check nontrivial RGBA16F clear words and the next draw’s resolved pixels, at 2x/4x/8x with and without CMASK. Existing rejection cases remain covered.

On the same RX 6650 XT/RADV machine, main and candidate each pass the four focused DCC tests three times (12/12), with actual Khronos layer insertion confirmed and zero VUID errors. A separate local control keeps initial 0x20 support but rejects only 0x20202020 inside absorbDccFill: all three clear tests fail at the resident-refill error, rather than initial import. The candidate passes those cases.

Your Windows initial-import results are attributed in the description; the new refill cases have not yet been repeated on Windows. The description also corrects the earlier path-less Linux validation claim and links all four new logs and both controls: evidence bundle. No new native-title or performance claim.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6306006816 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8123#issuecomment-6306006816). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T01:49:23Z. --- Added the resident-refill regression in `6f621e23c6` and refreshed this branch onto main `3b5a24c0d6` without merge commits. Whole-range CPU and GPU `0x20202020` refills now check nontrivial RGBA16F clear words and the next draw’s resolved pixels, at 2x/4x/8x with and without CMASK. Existing rejection cases remain covered. On the same RX 6650 XT/RADV machine, main and candidate each pass the four focused DCC tests three times (12/12), with actual Khronos layer insertion confirmed and zero VUID errors. A separate local control keeps initial `0x20` support but rejects only `0x20202020` inside `absorbDccFill`: all three clear tests fail at the resident-refill error, rather than initial import. The candidate passes those cases. Your Windows initial-import results are attributed in the description; the new refill cases have not yet been repeated on Windows. The description also corrects the earlier path-less Linux validation claim and links all four new logs and both controls: [evidence bundle](https://github.com/JJenkx/AnyPS5/releases/download/game-library-checks-20261016/20261021-pr8123-resident-refill-validation.tar.gz). No new native-title or performance claim.
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!8123
No description provided.