Windows, AMD Radeon 780M (AMDVLK 31.0.22038.0): four GPU tests fail in the driver's compiler or give wrong wave64 interpolation #3358
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 reyani-dev on 2026-10-11T08:48:57Z.
On an AMD Radeon 780M (RDNA3 iGPU, Windows driver 31.0.22038.0, AMDVLK), four GPU tests fail on
main04ab4a86. Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release,ANYPS5_GPU=AMD,VK_LOADER_DRIVERS_DISABLE=*dzn*(#3255). The same build passes all four on the RTX 4070 in the same machine.agc_driver_sdwa_integer_clampvkCreateComputePipelines: Vulkan result -3after the driver's backend printsrenamable $vgpr9, renamable $sgpr8_sgpr9 = V_ADDC_U32_e64 $vgpr0, killed $vgpr12, killed $vgpr9_vgpr10, 0, implicit $execagc_driver_sdwa_integer_selectorsV_ADDC_U32_e64 ..., thenvkCreateComputePipelines: Vulkan result -3agc_driver_vopc_compare_table0xc0000409; under gdb the fault is insideamdvlk64.dllagc_driver_interpolation_f1616-bit interpolation wave64: pixel 584 dword 2 is 0xbef79e54, expected 0x3e90c359 (I 0x1.659ccp-6, J 0x1.1ba5c2p-10)The two SDWA tests look like an AMDVLK compiler failure on the pipeline (a machine-instruction dump from its LLVM backend, then
VK_ERROR_INITIALIZATION_FAILED), andvopc_compare_tablecrashes in the driver.interpolation_f16is the only one that runs and gives a wrong value; it fails only in its wave64 case, which may point at the driver's wave64 interpolation or at the 16-bit interpolation lowering. I haven't narrowed that one down.Filed for reference for anyone testing on AMD under Windows. Each test fails the same way on repeated runs. A similar NVIDIA-driver compiler abort is #3357.
Found with Claude Code.
Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-12T05:19:23Z.
All four pass on a different AMD configuration, which points at the AMDVLK shader compiler rather than at AMD hardware.
Tested on current
maind146ec1b6, Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release:AMD Radeon(TM) Graphics0x164e(Ryzen 9 7900 iGPU, RDNA2), integrated, subgroup 64driverNamedriverInfo25.10.30.02 (AMD proprietary shader compiler)31.0.22038.0apiVersionagc_driver_sdwa_integer_clampagc_driver_sdwa_integer_selectorsagc_driver_vopc_compare_tableagc_driver_interpolation_f16For context the whole
agc_driver_set was run on this adapter: 327 of 329 pass, 3 skipped (mesh,ngg_vertex_wave_reduction,oversized_dispatch). The two failures are unrelated to this issue —pixel_interlockis #2009, andlds_mixed_width_atomicsis reported on Vega in #3882.Your three driver-side failures all read as AMDVLK's LLVM backend: a
V_ADDC_U32_e64machine-instruction dump followed byVK_ERROR_INITIALIZATION_FAILED, and a fault insideamdvlk64.dll. This run goes through AMD's proprietary shader compiler instead — a different compiler on the same vendor's hardware — and none of the three reproduce.interpolation_f16is the odd one out, being a wrong value rather than a compiler failure, but its wave64 case is correct here too.Two variables differ at once, driver stack (proprietary vs AMDVLK) and architecture (RDNA2 vs RDNA3), so this does not isolate the cause by itself. It does rule out "AMD on Windows" as the scope. Running the same four against the proprietary driver on the 780M would separate the two.
One reproduction note that cost me an hour
OpenVulkanTestDevice()catches a device-selection failure and skips while reporting success, so a run pinned withANYPS5_GPUlooks green whether or not the adapter was ever used — including when the name matches nothing at all. SetANYPS5_REQUIRE_VULKAN=1so a skip becomes a failure:Worth confirming the pin with a negative control:
ANYPS5_GPU=NoSuchAdaptermust fail and list the adapters. Notetests/BdaDevice.cppis a separate harness that ranks by device type and ignoresANYPS5_GPUentirely.%LOCALAPPDATA%\AMD\VkCachewas emptied and a freshANYPS5_SHADER_CACHE_DIRused for every run here; a stale AMD pipeline cache has produced convincing phantom GPU failures for me three times, as on #2755.Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-19T10:39:17Z.
@ycbuzi your separate BdaDevice GPU-selection finding is confirmed, and a focused fork fix is now validated. This corrects fixture coverage; it does not address the four AMD shader failures that this issue reports.
Base: main
f72c7aacfa7840c881e53c64aaf98cc8497f2a7a. The test-only control retains the original constructor byte-for-byte. The new AMD selection/full-BDA tests and missing-device selection test each fail in three fresh processes because the actual device is NVIDIA. NVIDIA selection/full-BDA and CPU selection tests pass three times each.With the fix:
Full default Windows build and explicit
relinker libs agc_driver_bda_device_testsbuild pass. GPU runs useANYPS5_REQUIRE_VULKAN=1(except the explicit negative control),ANYPS5_NO_SHADER_CACHE=1, Khronos validation 1.4.363 and verbose CTest with a 30-second timeout. No VUIDs, validation errors/warnings, skips or timeouts. Device identity is queried from the actualcontext.physicalhandle. The requested GPU name alone is not counted as coverage.Windows 11 Enterprise 26200, GCC 15.2 r7; NVIDIA RTX 5080, driver 610.62 / 32.0.16.1062; AMD Radeon(TM) Graphics, driver 32.0.21036.18. Cppcheck 2.20.0 and clang-tidy 23.1.3 found no selected diagnostics in this translation unit. Linux/lavapipe is not tested for this fix. No game-unblock or performance claim.
The name matching follows the existing runtime policy; Khronos documents querying the physical-device handle for identity. Main advanced to
97d5d7a52aafter validation with unrelated libkernel/guest-test changes; these results remain pinned tof72c7aacfa.Our #7570 concerns a different fixture. The overlap tool found #7082 changes this fixture's command handling for host-import tests, so I am coordinating ordering before opening the follow-up. The original selection report also appears in #3882; no duplicate issue was opened.
Earlier unmodified-main control
Main
b7a75819f3efad870a3372eb0e2aba1d0e956657: NVIDIA, AMD and nonexistent-name requests each produced three green full-BDA tests, all on NVIDIA. Six selection-contract violations, zero AMD executions. AMD-requested log SHA256:bfcf6bc9368865910e45cd22992d4412a21b81888f61c863434ace5ea162b01a.AI-assisted implementation, validation and report: yes, Codex.