AMD Windows GPL-off: agc_driver_cmask_fast_clear fails with Vulkan device loss #5150

Closed
opened 2026-10-13 13:00:00 +00:00 by Amoenus · 4 comments
Amoenus commented 2026-10-13 13:00:00 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-13T13:00:00Z.


Resolved on the reported iGPU with current main/new drivers — 26 October2026

Closing the original local reproduction: on literal main5b5d24cb223ede690fe5eab1fe2f7a1736b801a5,the same AMD Radeon Graphics iGPU1002:13c0 now passes agc_driver_cmask_fast_clear 5/5 with GPL on and5/5 with GPL off. RTX5080 control passes5/5 in each mode too:20passes,zero validation warnings/errors/VUIDs,skips or timeouts. Logs show pipelineLibrary=1/0 respectively and the completed draw/eliminate checks.

AMD Windows32.0.21045.16010(AMD26.10.1),NVIDIA621.01/32.0.16.2101,Windows11Enterprise26200,WinLibsGCC15.2r7 Release. Full native/relinker/real-fixture builds;required Vulkan,loaded Khronos1.4.363,application cache/journal off,serial verbose CTest,pre/post artifacts verified. Driver caches left as found.

#9022 is merged,but its different-device debt cleanup was not proof about this machine;this is the missing same-device current result. Both source and drivers advanced,so no driver-only cause,fix commit or original-source rerun is claimed. Historical failures remain below. No game/full-suite/performance claim. Pins and complete logs. AI-assisted:yes(Codex).

Previous evidence and source-pinned history

Maintenance status, 2026-10-22

Keep open for the original device-specific reproduction. The Radeon 860M follow-up reports GPL-on/off passes on main ec7eacc62 and a retained failure on the original source pin. It does not validate the original gfx1036 (1002:13c0, driver 32.0.21036.18) device-loss case. #9022 is still an open debt-cleanup PR, not a merged fix or closure of this report. A matching-device rerun remains outstanding; no fresh runtime result is claimed by this status update.

AI-assisted report maintenance: yes.

Reproduction

The public synthetic agc_driver_cmask_fast_clear fixture fails on unmodified main 0f2683cb7daf0d92a2b38c8ed2a00e03e12380a0 with:

AGC graphics: vkQueueSubmit recorder: Vulkan result -4

Windows 11 Enterprise 26200; WinLibs GCC 15.2.0 r7/Ninja Release; AMD Radeon Graphics 1002:13c0, driver 32.0.21036.18. NVIDIA RTX 5080/driver 610.62 is the comparison device. AnyPS5 shader cache is disabled; driver-cache coldness is unverified. Official ANYPS5_AGC_EXECUTION_TESTS is empty and selected build rules contain genuine sources.

$env:ANYPS5_GPU = 'AMD Radeon'
$env:ANYPS5_REQUIRE_VULKAN = '1'
$env:ANYPS5_NO_SHADER_CACHE = '1'
$env:APS5_NO_GPL = '1'
ctest --test-dir <build> -R '^agc_driver_cmask_fast_clear$' --verbose --parallel 1 --repeat until-fail:5 --timeout 30

Prepend <build>/core/libs/libs/unpatched and the toolchain bin to PATH. GPL-on controls remove APS5_NO_GPL. These are requested modes, not proof every draw selected GPL.

Controls

Source Result
#4556 b83e70462, base 398ccaaf9 NVIDIA on/off and AMD on pass 5/5; AMD off fails on its first run
#4556 44c4b3f8b, base 0f2683cb7 Same matrix
Exact unmodified main 0f2683cb7, freshly rebuilt CMASK target/libraries AMD off fails on first run: same device-loss line, 0.23463s
Byte-exact restored 44c4b3f8b, full rebuild/libraries/checkers AMD off fails once: same line, 0.216487s; covered-centroid CPU fixture passes

The driver logs verify AMD selection. No selected skips occurred. The five original contribution groups pass 5/5 on both GPUs in both modes; no centroid-specific cause is established. This is a fixture failure, with no game dump, title impact, console measurement or root cause claimed.

Related context: #2755 corrected earlier AMD cache/LTO wrong-output reports; #2155 concerned a historical storage-refresh Recorder loss; #4768 tracks different GPL/relocation wrong results. #4041 updated CMASK cases; these runs do not establish that it introduced this failure. No verified duplicate or fix surfaced in complete targeted searches.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5830761541 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5150). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-13T13:00:00Z. --- <!-- codex-sweep-20261026-5150 --> ## Resolved on the reported iGPU with current main/new drivers — 26 October2026 Closing the original local reproduction: on literal main`5b5d24cb223ede690fe5eab1fe2f7a1736b801a5`,the same AMD Radeon Graphics iGPU`1002:13c0` now passes `agc_driver_cmask_fast_clear` **5/5 with GPL on and5/5 with GPL off**. RTX5080 control passes5/5 in each mode too:20passes,zero validation warnings/errors/VUIDs,skips or timeouts. Logs show `pipelineLibrary=1`/`0` respectively and the completed draw/eliminate checks. AMD Windows32.0.21045.16010(AMD26.10.1),NVIDIA621.01/32.0.16.2101,Windows11Enterprise26200,WinLibsGCC15.2r7 Release. Full native/relinker/real-fixture builds;required Vulkan,loaded Khronos1.4.363,application cache/journal off,serial verbose CTest,pre/post artifacts verified. Driver caches left as found. [#9022 is merged](https://github.com/boykopovar/AnyPS5/pull/9022),but its different-device debt cleanup was not proof about this machine;this is the missing same-device current result. Both source and drivers advanced,so no driver-only cause,fix commit or original-source rerun is claimed. Historical failures remain below. No game/full-suite/performance claim. [Pins and complete logs](https://gist.github.com/Amoenus/cfb020bde3a8c5406515b97ea43be4c4#file-newdrivers-main5b5d24-issue5150-synthetic-log-v1-txt). AI-assisted:yes(Codex). <!-- /codex-sweep-20261026-5150 --> <details> <summary>Previous evidence and source-pinned history</summary> <!-- codex-issue-maintenance-20261022-5150 --> ### Maintenance status, 2026-10-22 **Keep open for the original device-specific reproduction.** The [Radeon 860M follow-up](https://github.com/boykopovar/AnyPS5/issues/5150#issuecomment-6313187013) reports GPL-on/off passes on main `ec7eacc62` and a retained failure on the original source pin. It does not validate the original gfx1036 (`1002:13c0`, driver 32.0.21036.18) device-loss case. #9022 is still an open debt-cleanup PR, not a merged fix or closure of this report. A matching-device rerun remains outstanding; no fresh runtime result is claimed by this status update. AI-assisted report maintenance: yes. ### Reproduction The public synthetic `agc_driver_cmask_fast_clear` fixture fails on **unmodified main `0f2683cb7daf0d92a2b38c8ed2a00e03e12380a0`** with: ```text AGC graphics: vkQueueSubmit recorder: Vulkan result -4 ``` Windows 11 Enterprise 26200; WinLibs GCC 15.2.0 r7/Ninja Release; AMD Radeon Graphics `1002:13c0`, driver `32.0.21036.18`. NVIDIA RTX 5080/driver 610.62 is the comparison device. AnyPS5 shader cache is disabled; driver-cache coldness is unverified. Official `ANYPS5_AGC_EXECUTION_TESTS` is empty and selected build rules contain genuine sources. ```powershell $env:ANYPS5_GPU = 'AMD Radeon' $env:ANYPS5_REQUIRE_VULKAN = '1' $env:ANYPS5_NO_SHADER_CACHE = '1' $env:APS5_NO_GPL = '1' ctest --test-dir <build> -R '^agc_driver_cmask_fast_clear$' --verbose --parallel 1 --repeat until-fail:5 --timeout 30 ``` Prepend `<build>/core/libs/libs/unpatched` and the toolchain bin to PATH. GPL-on controls remove `APS5_NO_GPL`. These are requested modes, not proof every draw selected GPL. ### Controls | Source | Result | | --- | --- | | #4556 `b83e70462`, base `398ccaaf9` | NVIDIA on/off and AMD on pass 5/5; AMD off fails on its first run | | #4556 `44c4b3f8b`, base `0f2683cb7` | Same matrix | | Exact unmodified main `0f2683cb7`, freshly rebuilt CMASK target/libraries | AMD off fails on first run: same device-loss line, 0.23463s | | Byte-exact restored `44c4b3f8b`, full rebuild/libraries/checkers | AMD off fails once: same line, 0.216487s; covered-centroid CPU fixture passes | The driver logs verify AMD selection. No selected skips occurred. The five original contribution groups pass 5/5 on both GPUs in both modes; no centroid-specific cause is established. This is a fixture failure, with no game dump, title impact, console measurement or root cause claimed. Related context: [#2755](https://github.com/boykopovar/AnyPS5/issues/2755) corrected earlier AMD cache/LTO wrong-output reports; [#2155](https://github.com/boykopovar/AnyPS5/issues/2155) concerned a historical storage-refresh Recorder loss; [#4768](https://github.com/boykopovar/AnyPS5/issues/4768) tracks different GPL/relocation wrong results. [#4041](https://github.com/boykopovar/AnyPS5/pull/4041) updated CMASK cases; these runs do not establish that it introduced this failure. No verified duplicate or fix surfaced in complete targeted searches. AI-assisted: yes. </details>
MarcZX10 commented 2026-10-13 13:06:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T13:06:20Z.


I inspected CmaskFastClear.cpp: the fixture alternates device.Draw() submissions with ColorMetadataPass(EliminateFastClear) and readback checks. The reported vkQueueSubmit error alone does not show which phase loses the AMD device, and those phases take different command paths.

Could you identify the first failing phase (first draw, a later draw, fast-clear elimination, or readback)? A temporary phase marker around those calls in one AMD run would narrow the failure without assuming CMASK itself is the cause.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146230543 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5150#issuecomment-6146230543). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T13:06:20Z. --- I inspected `CmaskFastClear.cpp`: the fixture alternates `device.Draw()` submissions with `ColorMetadataPass(EliminateFastClear)` and readback checks. The reported `vkQueueSubmit` error alone does not show which phase loses the AMD device, and those phases take different command paths. Could you identify the first failing phase (first draw, a later draw, fast-clear elimination, or readback)? A temporary phase marker around those calls in one AMD run would narrow the failure without assuming CMASK itself is the cause.
simonbbby commented 2026-10-13 13:24:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-13T13:24:49Z.


Linux control at your exact unmodified main revision 0f2683cb7daf0d92a2b38c8ed2a00e03e12380a0, including the same AMD PCI ID 1002:13c0:

Device Requested GPL on APS5_NO_GPL=1
gfx1036 RDNA2 iGPU, RADV Mesa 25.2.8 CMASK / alpha-coverage / wave32: 5/5 each 5/5 each
RTX 3090, NVIDIA 595.99.02 Same three fixtures: 5/5 each 5/5 each

Ubuntu 24.04 / Linux 7.0, Ryzen 9 9950X, GCC 13.3, Ninja Release, BUILD_TESTING=ON, SPIRV-Tools ON, bundled dependencies. Built the genuine three fixture targets and their runtime libraries in a clean, detached checkout; no source/test edits. ctest -V -R '^agc_driver_(cmask_fast_clear|alpha_to_coverage|wave32_subgroup)$' --parallel 1 --repeat until-fail:5 --timeout 30 --no-tests=error.

Each leg restricts VK_DRIVER_FILES to its device's ICD, sets ANYPS5_GPU, ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1; GPL-on unsets APS5_NO_GPL. Logs confirm the selected GPUs. All 60 executions passed, with no skipped subcases, failures or timeouts. The two neighboring fixtures also update the older Linux control in #4768 to this revision.

This does not reproduce the Windows device loss on RADV, even with the matching AMD PCI ID. No phase localization, root-cause attribution, actual per-draw GPL-path proof, driver-cache coldness control, title run or fix claim. Logs retained.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146580275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5150#issuecomment-6146580275). Originally posted by [simonbbby](https://github.com/simonbbby) on 2026-10-13T13:24:49Z. --- Linux control at your exact unmodified main revision `0f2683cb7daf0d92a2b38c8ed2a00e03e12380a0`, including the same AMD PCI ID `1002:13c0`: | Device | Requested GPL on | `APS5_NO_GPL=1` | |---|---|---| | gfx1036 RDNA2 iGPU, RADV Mesa 25.2.8 | CMASK / alpha-coverage / wave32: 5/5 each | 5/5 each | | RTX 3090, NVIDIA 595.99.02 | Same three fixtures: 5/5 each | 5/5 each | Ubuntu 24.04 / Linux 7.0, Ryzen 9 9950X, GCC 13.3, Ninja Release, `BUILD_TESTING=ON`, SPIRV-Tools ON, bundled dependencies. Built the genuine three fixture targets and their runtime libraries in a clean, detached checkout; no source/test edits. `ctest -V -R '^agc_driver_(cmask_fast_clear|alpha_to_coverage|wave32_subgroup)$' --parallel 1 --repeat until-fail:5 --timeout 30 --no-tests=error`. Each leg restricts `VK_DRIVER_FILES` to its device's ICD, sets `ANYPS5_GPU`, `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`; GPL-on unsets `APS5_NO_GPL`. Logs confirm the selected GPUs. All 60 executions passed, with no skipped subcases, failures or timeouts. The two neighboring fixtures also update the older Linux control in #4768 to this revision. This does not reproduce the Windows device loss on RADV, even with the matching AMD PCI ID. No phase localization, root-cause attribution, actual per-draw GPL-path proof, driver-cache coldness control, title run or fix claim. Logs retained.
LeandroLP23 commented 2026-10-13 13:37:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T13:37:28Z.


A second AMD Windows device, with an older driver: Radeon 860M (RDNA 3.5, 1002:1114), driver 32.0.13058.8001, Windows 11 (26300), WinLibs GCC 15.2.0, Release, main 0f2683cb7. ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, ctest -R '^agc_driver_cmask_fast_clear$' --timeout 30, five runs per mode:

Mode Result
GPL on 5/5 pass
APS5_NO_GPL=1 0/5. No device loss here; every run fails on the output: SW_64KB_R_X fast-cleared target drawn over its left part: texel (0, 0) holds 1515870810

1515870810 is 0x5a5a5a5a, so the draw left the target untouched. That matches what I found on this driver in #4768: with APS5_NO_GPL=1, ctest -R '^agc_' passes 196/470, compute-only fixtures included, because nothing a pipeline writes lands (comment 6144540340). simonbbby's RADV control passes in both modes on 1002:13c0. So on AMD's Windows driver the non-library configuration looks broken in a driver-dependent way: wrong output on 32.0.13058, and device loss in this fixture on 32.0.21036. That points at the GPL-off device or pipeline setup rather than at the CMASK fixture.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146824382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5150#issuecomment-6146824382). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-13T13:37:28Z. --- A second AMD Windows device, with an older driver: Radeon 860M (RDNA 3.5, `1002:1114`), driver 32.0.13058.8001, Windows 11 (26300), WinLibs GCC 15.2.0, Release, `main` `0f2683cb7`. `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, `ctest -R '^agc_driver_cmask_fast_clear$' --timeout 30`, five runs per mode: | Mode | Result | |---|---| | GPL on | 5/5 pass | | `APS5_NO_GPL=1` | 0/5. No device loss here; every run fails on the output: `SW_64KB_R_X fast-cleared target drawn over its left part: texel (0, 0) holds 1515870810` | 1515870810 is `0x5a5a5a5a`, so the draw left the target untouched. That matches what I found on this driver in #4768: with `APS5_NO_GPL=1`, `ctest -R '^agc_'` passes 196/470, compute-only fixtures included, because nothing a pipeline writes lands (comment 6144540340). simonbbby's RADV control passes in both modes on `1002:13c0`. So on AMD's Windows driver the non-library configuration looks broken in a driver-dependent way: wrong output on 32.0.13058, and device loss in this fixture on 32.0.21036. That points at the GPL-off device or pipeline setup rather than at the CMASK fixture.
LeandroLP23 commented 2026-10-21 09:56:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-21T09:56:45Z.


Follow-up on the Radeon 860M result: it no longer reproduces on current main.

  • main ec7eacc62, full build: --repeat until-fail:5 passes 5 of 5 with APS5_NO_GPL=1 (pipelineLibrary=0 in the log), and 5 of 5 with it unset.
  • 0f2683cb7, the commit of my earlier comment, rebuilt clean today: GPL off still fails 3 of 3 with texel (0, 0) holds 1515870810, so that result was not a stale build.
  • A first-parent bisect, stopped early, puts the fix between 463dc2e4e2 (#7889, fails) and 611f08561c (#7997, passes). #6436 is not it: both its parent and its merge pass with an empty AMD driver cache.

#9022 drops the debt entry, whose closing condition this meets. The original report here (device loss on 1002:13c0, driver 32.0.21036) is a different device and driver, so it would need a rerun there to close the issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313187013 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5150#issuecomment-6313187013). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-21T09:56:45Z. --- Follow-up on the Radeon 860M result: it no longer reproduces on current `main`. - `main` `ec7eacc62`, full build: `--repeat until-fail:5` passes 5 of 5 with `APS5_NO_GPL=1` (`pipelineLibrary=0` in the log), and 5 of 5 with it unset. - `0f2683cb7`, the commit of my earlier comment, rebuilt clean today: GPL off still fails 3 of 3 with `texel (0, 0) holds 1515870810`, so that result was not a stale build. - A first-parent bisect, stopped early, puts the fix between `463dc2e4e2` (#7889, fails) and `611f08561c` (#7997, passes). #6436 is not it: both its parent and its merge pass with an empty AMD driver cache. #9022 drops the debt entry, whose closing condition this meets. The original report here (device loss on `1002:13c0`, driver 32.0.21036) is a different device and driver, so it would need a rerun there to close the issue.
Sign in to join this conversation.
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#5150
No description provided.