fix(shader): kill demoted quad-mask pixels when the pixel program returns #6255

Merged
LeandroLP23 merged 1 commit from upstream-pr/6255 into main 2026-10-18 21:26:49 +00:00
LeandroLP23 commented 2026-10-15 08:10:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-15T08:10:44Z.


What

agc_driver_quad_pixel_mask, added with #6015, fails on AMD Windows: implicit-LOD sample with quad pixel mask 2: pixel (0, 0) channel 2 is 2, expected 0.

A pixel that PA_SC_AA_MASK leaves uncovered is demoted to a helper invocation, so the covered pixels keep their derivatives. The test's sampled program exports under the restored EXEC mask, which clears the uncovered lane, so the recompiled shader never writes that invocation's colour output. On the Radeon 860M the driver still writes something for those demoted invocations. Every uncovered pixel gets undefined colour, not the sampled texel (60df42ff). The value depends only on x, the same in every run:

covered:    x=1,3,5,7   60df42ff
uncovered:  row 0: 00000200 . 00000800 . 00001000 . 00001000 .
            row 1: 00000200 00000400 00000800 00000800 00001000 00001000 00001000 00001000

The Vulkan spec says a helper invocation's outputs are discarded, so this looks like driver behaviour. This PR emits one OpKill for the uncovered invocations at the program's return. By then every derivative has been taken, so the covered pixels keep their LOD, and the demoted pixels are discarded on every driver. Without demote, the uncovered invocations are already killed at entry and the new branch is never taken.

The sample masks entry in docs/dev/debt/libSceAgcDriver.md now mentions the kill and the driver behaviour.

Tested

Windows 11 (26300), Radeon 860M (RDNA 3.5, 1002:1114), driver 32.0.13058.8001, WinLibs GCC 15.2.0, Release, on main d92a8dad3.

  • This PR: agc_driver_quad_pixel_mask, agc_driver_sample_mask_draw, agc_driver_sample_mask_depth_stencil, agc_driver_sample_mask_multisample, agc_shader_quad_mask_no_demote and request_serializer pass, --repeat until-fail:3. The quad pixel mask test reports quad pixel mask tests passed (demote to helper invocation).
  • Negative control: agc_driver_quad_pixel_mask on main d92a8dad3 fails 3 of 3, with GPL on and off.
  • Full ctest -R '^agc_' -j 1 from an empty tests/shader_cache: one failure, agc_driver_layered_volume_vertex_no_gpl. That's the AMD driver cache inversion of #4768, which fails in every full run on main on this machine.
  • tools/check_conventions.py --base origin/main passes; git diff --check is clean.

Fork CI (run): Linux 1229 of 1230 and Windows 1252 of 1253, the one failure in each being the fork-only conventions_ci_gate. The first Windows attempt also timed out in agc_driver_readonly_resummarize, a write-tracking test with no quad mask that passes in 0.02 s on Linux and locally; it passed on the job rerun.

Not tested: any title. @savvaniss ran the quad-mask and sample-mask tests on an RX 9070 XT (RDNA 4), where this fixes agc_driver_quad_pixel_mask, and on an Intel UHD 770, where the base already passes and nothing changes. @jotitadev ran it on NVIDIA (RTX 3070, Linux).

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
  • Unblocks: GTA V (PPSA04263), the title #6015 added sample masks for, on AMD Windows, where pixels a quad mask leaves uncovered would otherwise get undefined colour (not run here)
  • GPUs tested: AMD Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, Windows 11 26300
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870227338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6255). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-15T08:10:44Z. --- ### What `agc_driver_quad_pixel_mask`, added with #6015, fails on AMD Windows: `implicit-LOD sample with quad pixel mask 2: pixel (0, 0) channel 2 is 2, expected 0`. A pixel that `PA_SC_AA_MASK` leaves uncovered is demoted to a helper invocation, so the covered pixels keep their derivatives. The test's sampled program exports under the restored EXEC mask, which clears the uncovered lane, so the recompiled shader never writes that invocation's colour output. On the Radeon 860M the driver still writes something for those demoted invocations. Every uncovered pixel gets undefined colour, not the sampled texel (`60df42ff`). The value depends only on x, the same in every run: ``` covered: x=1,3,5,7 60df42ff uncovered: row 0: 00000200 . 00000800 . 00001000 . 00001000 . row 1: 00000200 00000400 00000800 00000800 00001000 00001000 00001000 00001000 ``` The Vulkan spec says a helper invocation's outputs are discarded, so this looks like driver behaviour. This PR emits one `OpKill` for the uncovered invocations at the program's return. By then every derivative has been taken, so the covered pixels keep their LOD, and the demoted pixels are discarded on every driver. Without demote, the uncovered invocations are already killed at entry and the new branch is never taken. The sample masks entry in `docs/dev/debt/libSceAgcDriver.md` now mentions the kill and the driver behaviour. ### Tested Windows 11 (26300), Radeon 860M (RDNA 3.5, `1002:1114`), driver 32.0.13058.8001, WinLibs GCC 15.2.0, Release, on `main` `d92a8dad3`. - **This PR:** `agc_driver_quad_pixel_mask`, `agc_driver_sample_mask_draw`, `agc_driver_sample_mask_depth_stencil`, `agc_driver_sample_mask_multisample`, `agc_shader_quad_mask_no_demote` and `request_serializer` pass, `--repeat until-fail:3`. The quad pixel mask test reports `quad pixel mask tests passed (demote to helper invocation)`. - **Negative control:** `agc_driver_quad_pixel_mask` on `main` `d92a8dad3` fails 3 of 3, with GPL on and off. - **Full `ctest -R '^agc_' -j 1`** from an empty `tests/shader_cache`: one failure, `agc_driver_layered_volume_vertex_no_gpl`. That's the AMD driver cache inversion of #4768, which fails in every full run on `main` on this machine. - `tools/check_conventions.py --base origin/main` passes; `git diff --check` is clean. Fork CI ([run](https://github.com/LeandroLP23/AnyPS5/actions/runs/38706157866)): Linux 1229 of 1230 and Windows 1252 of 1253, the one failure in each being the fork-only `conventions_ci_gate`. The first Windows attempt also timed out in `agc_driver_readonly_resummarize`, a write-tracking test with no quad mask that passes in 0.02 s on Linux and locally; it passed on the job rerun. Not tested: any title. @savvaniss [ran the quad-mask and sample-mask tests](https://github.com/boykopovar/AnyPS5/pull/6255#issuecomment-6224572524) on an RX 9070 XT (RDNA 4), where this fixes `agc_driver_quad_pixel_mask`, and on an Intel UHD 770, where the base already passes and nothing changes. @jotitadev [ran it on NVIDIA](https://github.com/boykopovar/AnyPS5/pull/6255#pullrequestreview-5539090355) (RTX 3070, Linux). ### Checklist - [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 - [x] Unblocks: GTA V (PPSA04263), the title #6015 added sample masks for, on AMD Windows, where pixels a quad mask leaves uncovered would otherwise get undefined colour (not run here) - [x] GPUs tested: AMD Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, Windows 11 26300 - [x] AI-assisted: yes (Claude Code)
github-actions[bot] commented 2026-10-15 12:17:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:17:34Z.


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 2434 docs/dev/debt/libSceAgcDriver.md
PR 4072 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4650 docs/dev/debt/libSceAgcDriver.md
PR 5021 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5499 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6215 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6234 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6472 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6529 docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6557 docs/dev/debt/libSceAgcDriver.md
PR 6563 docs/dev/debt/libSceAgcDriver.md
PR 6727 docs/dev/debt/libSceAgcDriver.md
PR 6786 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6941 docs/dev/debt/libSceAgcDriver.md
PR 6946 docs/dev/debt/libSceAgcDriver.md
PR 6947 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6977 docs/dev/debt/libSceAgcDriver.md
PR 7008 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7258 docs/dev/debt/libSceAgcDriver.md
PR 7332 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7390 docs/dev/debt/libSceAgcDriver.md
PR 7429 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 7642 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191848764 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6255#issuecomment-6191848764). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:17:34Z. --- <!-- pr-overlap --> 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 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6215](https://www.github.com/boykopovar/AnyPS5/pull/6215) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6234](https://www.github.com/boykopovar/AnyPS5/pull/6234) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6472](https://www.github.com/boykopovar/AnyPS5/pull/6472) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6529](https://www.github.com/boykopovar/AnyPS5/pull/6529) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6557](https://www.github.com/boykopovar/AnyPS5/pull/6557) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6563](https://www.github.com/boykopovar/AnyPS5/pull/6563) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6786](https://www.github.com/boykopovar/AnyPS5/pull/6786) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7008](https://www.github.com/boykopovar/AnyPS5/pull/7008) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7429](https://www.github.com/boykopovar/AnyPS5/pull/7429) | `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` |
jotitadev commented 2026-10-15 19:55:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:55:58Z.

Review: COMMENTED


NVIDIA run, for the "Not tested: NVIDIA" line.

Ubuntu 26.04 (kernel 7.0.0-38), NVIDIA GeForce RTX 3070, driver 595.99.02, GCC 15.2, Release, BUILD_TESTING=ON, ANYPS5_GPU set to the 3070 (the log shows Selected GPU name=NVIDIA GeForce RTX 3070 vendor=0x10de). Head 79d72b683 merged onto main 44df21632, no conflicts.

  • agc_driver_quad_pixel_mask passes on unmodified main and with this PR, 3 of 3 runs with the PR. Both report quad pixel mask tests passed (demote to helper invocation), so the demote path runs. This driver does not show the Radeon 860M behaviour: the demoted pixels already come out right without the kill. The test cannot act as a negative control on this GPU.
  • With the PR, the new OpKill causes no regression here. agc_driver_sample_mask_draw, agc_driver_sample_mask_depth_stencil, agc_driver_sample_mask_multisample and agc_shader_quad_mask_no_demote pass in the full run.
  • ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display" -j1: 592 of 593 pass, with the same 3 skips as main. The failure is agc_driver_store_over_untracked, which also fails on unmodified main on this machine: 9 of 10 runs with other builds running, all with the result did not reach a block the CPU left alone. It is the same test as #6347 and #6383, which report it on Windows. On an idle machine, main passes 593 of 593.

Not run: Intel, any title.

GPUs tested: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38)

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5539090355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6255#pullrequestreview-5539090355). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T19:55:58Z. **Review:** COMMENTED --- NVIDIA run, for the "Not tested: NVIDIA" line. Ubuntu 26.04 (kernel 7.0.0-38), NVIDIA GeForce RTX 3070, driver 595.99.02, GCC 15.2, Release, `BUILD_TESTING=ON`, `ANYPS5_GPU` set to the 3070 (the log shows `Selected GPU name=NVIDIA GeForce RTX 3070 vendor=0x10de`). Head `79d72b683` merged onto `main` `44df21632`, no conflicts. - `agc_driver_quad_pixel_mask` passes on unmodified `main` and with this PR, 3 of 3 runs with the PR. Both report `quad pixel mask tests passed (demote to helper invocation)`, so the demote path runs. This driver does not show the Radeon 860M behaviour: the demoted pixels already come out right without the kill. The test cannot act as a negative control on this GPU. - With the PR, the new `OpKill` causes no regression here. `agc_driver_sample_mask_draw`, `agc_driver_sample_mask_depth_stencil`, `agc_driver_sample_mask_multisample` and `agc_shader_quad_mask_no_demote` pass in the full run. - `ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display" -j1`: 592 of 593 pass, with the same 3 skips as `main`. The failure is `agc_driver_store_over_untracked`, which also fails on unmodified `main` on this machine: 9 of 10 runs with other builds running, all with `the result did not reach a block the CPU left alone`. It is the same test as #6347 and #6383, which report it on Windows. On an idle machine, `main` passes 593 of 593. Not run: Intel, any title. GPUs tested: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
PYTHONRETARDE commented 2026-10-15 23:54:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PYTHONRETARDE on 2026-10-15T23:54:11Z.


RDNA 3 data point: this fixes agc_driver_quad_pixel_mask on an RX 7800 XT too.

RX 7800 XT (1002:747e), driver 32.0.31041.1004, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release. Baseline main 03c4cb5e7 + #6452 (needed to build on Windows); test build adds this PR's head 79d72b683. %LOCALAPPDATA%\AMD\VkCache emptied before each run (#4768).

Test Baseline With this PR
agc_driver_quad_pixel_mask 5/5 fail: implicit-LOD sample with quad pixel mask 2: pixel (0, 0) channel 2 is 2, expected 0 5/5 pass
agc_driver_sample_mask_depth_stencil, agc_driver_pixel_helper_lanes — 5/5 pass

Full CTest with the PR: 1294 of 1298 pass. None of the four failures involve quad masks: agc_driver_layered_volume_draw and _vertex (#4768 cache swap; 3/3 pass alone), agc_driver_depth_surface_from_storage (fails 1 in 5 on the baseline too) and guest_kqueue (#6173).

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6204746497 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6255#issuecomment-6204746497). Originally posted by [PYTHONRETARDE](https://github.com/PYTHONRETARDE) on 2026-10-15T23:54:11Z. --- RDNA 3 data point: this fixes `agc_driver_quad_pixel_mask` on an RX 7800 XT too. RX 7800 XT (`1002:747e`), driver 32.0.31041.1004, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release. Baseline `main` `03c4cb5e7` + #6452 (needed to build on Windows); test build adds this PR's head `79d72b683`. `%LOCALAPPDATA%\AMD\VkCache` emptied before each run (#4768). | Test | Baseline | With this PR | |---|---|---| | `agc_driver_quad_pixel_mask` | 5/5 fail: `implicit-LOD sample with quad pixel mask 2: pixel (0, 0) channel 2 is 2, expected 0` | 5/5 pass | | `agc_driver_sample_mask_depth_stencil`, `agc_driver_pixel_helper_lanes` | — | 5/5 pass | Full CTest with the PR: 1294 of 1298 pass. None of the four failures involve quad masks: `agc_driver_layered_volume_draw` and `_vertex` (#4768 cache swap; 3/3 pass alone), `agc_driver_depth_surface_from_storage` (fails 1 in 5 on the baseline too) and `guest_kqueue` (#6173). AI-assisted: yes (Claude Code).
savvaniss commented 2026-10-16 20:58:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-16T20:58:32Z.


RDNA 4 and Intel data points: this fixes agc_driver_quad_pixel_mask on an RX 9070 XT and changes nothing on an Intel UHD 770, where the base already passes.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built. Base: main a7f108030 + #6452 (4fe92c9c2, needed to build on Windows); this head 79d72b683 merged on top. ANYPS5_NO_SHADER_CACHE=1; %LOCALAPPDATA%\AMD\VkCache emptied before each AMD row (#4768).

Tests: agc_driver_quad_pixel_mask, agc_driver_sample_mask_draw, agc_driver_sample_mask_depth_stencil, agc_driver_sample_mask_multisample, agc_driver_pixel_helper_lanes, agc_shader_quad_mask_no_demote; with this PR also request_serializer.

GPU Mode Base, ×3 This PR, ×5
RX 9070 XT (1002:7550), driver 32.0.31041.1004 GPL on quad_pixel_mask fails: implicit-LOD sample with quad pixel mask 2: pixel (0, 0) channel 2 is 2, expected 0; the rest pass all pass
RX 9070 XT GPL off all pass all pass
UHD 770 (8086:a780), driver 32.0.101.7088 GPL on all pass all pass

Unlike the 860M, this driver writes the demoted pixels only with GPL on. The values match the description: every uncovered pixel gets (0, 0, x, 0), with x = 2, 4, 8, 16 by column.

Full CTest on the RX 9070 XT with this PR, #6436 and #6647 together, from an empty VkCache: 1338 of 1339 (select_tests, symlink privilege on this machine).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224572524 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6255#issuecomment-6224572524). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-16T20:58:32Z. --- RDNA 4 and Intel data points: this fixes `agc_driver_quad_pixel_mask` on an RX 9070 XT and changes nothing on an Intel UHD 770, where the base already passes. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built. Base: `main` `a7f108030` + #6452 (`4fe92c9c2`, needed to build on Windows); this head `79d72b683` merged on top. `ANYPS5_NO_SHADER_CACHE=1`; `%LOCALAPPDATA%\AMD\VkCache` emptied before each AMD row (#4768). Tests: `agc_driver_quad_pixel_mask`, `agc_driver_sample_mask_draw`, `agc_driver_sample_mask_depth_stencil`, `agc_driver_sample_mask_multisample`, `agc_driver_pixel_helper_lanes`, `agc_shader_quad_mask_no_demote`; with this PR also `request_serializer`. | GPU | Mode | Base, ×3 | This PR, ×5 | |---|---|---|---| | RX 9070 XT (`1002:7550`), driver 32.0.31041.1004 | GPL on | `quad_pixel_mask` fails: `implicit-LOD sample with quad pixel mask 2: pixel (0, 0) channel 2 is 2, expected 0`; the rest pass | all pass | | RX 9070 XT | GPL off | all pass | all pass | | UHD 770 (`8086:a780`), driver 32.0.101.7088 | GPL on | all pass | all pass | Unlike the 860M, this driver writes the demoted pixels only with GPL on. The values match the description: every uncovered pixel gets `(0, 0, x, 0)`, with x = 2, 4, 8, 16 by column. Full CTest on the RX 9070 XT with this PR, #6436 and #6647 together, from an empty `VkCache`: 1338 of 1339 (`select_tests`, symlink privilege on this machine). AI-assisted: yes (Claude Code)
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!6255
No description provided.