AMD Windows GPL-off: agc_driver_cmask_fast_clear fails with Vulkan device loss #5150
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by 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 main
5b5d24cb223ede690fe5eab1fe2f7a1736b801a5,the same AMD Radeon Graphics iGPU1002:13c0now passesagc_driver_cmask_fast_clear5/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 showpipelineLibrary=1/0respectively 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
ec7eacc62and 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_clearfixture fails on unmodified main0f2683cb7daf0d92a2b38c8ed2a00e03e12380a0with:Windows 11 Enterprise 26200; WinLibs GCC 15.2.0 r7/Ninja Release; AMD Radeon Graphics
1002:13c0, driver32.0.21036.18. NVIDIA RTX 5080/driver 610.62 is the comparison device. AnyPS5 shader cache is disabled; driver-cache coldness is unverified. OfficialANYPS5_AGC_EXECUTION_TESTSis empty and selected build rules contain genuine sources.Prepend
<build>/core/libs/libs/unpatchedand the toolchain bin to PATH. GPL-on controls removeAPS5_NO_GPL. These are requested modes, not proof every draw selected GPL.Controls
b83e70462, base398ccaaf944c4b3f8b, base0f2683cb70f2683cb7, freshly rebuilt CMASK target/libraries44c4b3f8b, full rebuild/libraries/checkersThe 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.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T13:06:20Z.
I inspected
CmaskFastClear.cpp: the fixture alternatesdevice.Draw()submissions withColorMetadataPass(EliminateFastClear)and readback checks. The reportedvkQueueSubmiterror 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.
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 ID1002:13c0:APS5_NO_GPL=1Ubuntu 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_FILESto its device's ICD, setsANYPS5_GPU,ANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1; GPL-on unsetsAPS5_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.
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,main0f2683cb7.ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -R '^agc_driver_cmask_fast_clear$' --timeout 30, five runs per mode:APS5_NO_GPL=1SW_64KB_R_X fast-cleared target drawn over its left part: texel (0, 0) holds 15158708101515870810 is
0x5a5a5a5a, so the draw left the target untouched. That matches what I found on this driver in #4768: withAPS5_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 on1002: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.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.mainec7eacc62, full build:--repeat until-fail:5passes 5 of 5 withAPS5_NO_GPL=1(pipelineLibrary=0in 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 withtexel (0, 0) holds 1515870810, so that result was not a stale build.463dc2e4e2(#7889, fails) and611f08561c(#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.