AMD Vega iGPU (GCN 5, Windows): 35 agc_driver tests fail; draws leave the target unwritten and f16 ALU results differ #3882
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 Yuva1024 on 2026-10-11T18:33:05Z.
What
On an AMD Vega iGPU (GCN 5) with AMD's Windows driver, 35
agc_driver_*tests fail onmaina11c8f7f. The same build passes all of them on the NVIDIA card in the same PC. The AMD reports I found (#2755, #2944, #3358) are RDNA cards; I found none for Vega/GCN.Setup: Windows 11 Pro (26200), WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON. Ryzen 5 5600G iGPU,AMD Radeon(TM) Graphics, device0x1638, Vulkan 1.3.260, driverAMD proprietary driver26.1.1, subgroup size 64. Selected withANYPS5_GPU=AMD. The second GPU (RTX 4060, driver 617.42) passes every test below.Failing tests (35)
Draws leave the color target unwritten (it keeps its fill value, 64 or
0x5a, or the test finds no covered pixels), including draws whose pixel shader only exports a constant:pixel_valid_mask,pixel_helper_lanes,pixel_wave_reduction,pixel_lds,pixel_lds_lane_slots,pixel_uint16_export,interpolation_f16,ngg_vertex_wave_info,conservative_rasterization,provoking_vertex(also its "GLSL triangle list" case, which uses GLSL shaders, not recompiled ones),uint8x4_color_target.Draws write wrong values:
pixel_fixed_point_position(NaN),pixel_barycentric_emulation,vertex_fetch,tessellation,prepared_exports,alpha_to_coverage,dual_source_blend,swap_alt_blend,srgb8_color_target,packed_unorm_color_target,cmask_fast_clear,image_plane_address_on_line_implicit_lod.Example:
pixel valid mask wave64 full EXEC: pixel 0 channel 0 is 64, expected 255 (exported).16-bit float ALU results differ:
packed_alu,float16_fma_rounding,float16_rounding,float16_ternary_clamp,float16_dot,f32_dot2_rounding,div_fixup_f16,dpp16_operands,dx10_clamp,nan_quieting,vop3_align_op_sel.Example:
v_pk_fma_f16 v13, v4, v5, v6 is 0x3c00f89f, expected 0x8000f89f.Other:
lds_mixed_width_atomics(read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000).Ruled out
Each change below leaves all 35 failing:
APS5_NO_PIPELINE_LTO=1(#2755's cause)ANYPS5_ENABLE_SPIRV_TOOLS=ON(validation and optimization)APS5_NO_HOST_IMPORT=1pixel_valid_maskin writable instead of read-only memorypixel_valid_maskrun before wave64gl_HelperInvocationreplaced byfalsein the recompilerThe vertex and pixel SPIR-V of
pixel_valid_maskpassspirv-val. Apart from the SPIR-V version (1.3 vs 1.4), they are identical for the two GPUs.The driver reports
denormBehaviorIndependenceandroundingModeIndependenceasVK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY(NVIDIA:ALL). I have not checked whether the recompiler relies on independent float16 modes.Reproduce
I have not found the cause. Possibly related: #1799 (black window on a Radeon Vega 8, Linux).
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-11T18:55:52Z.
For comparison, here are the same 35 tests on RDNA 3.5 with AMD's Windows driver: Radeon 860M (device 0x1114), driver 32.0.13058.8001 (Vulkan
24.30.58.08, LLPC), Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release,maina11c8f7f7, with the AMD Vulkan cache andshader_cacheemptied first. All 35 pass, none skipped. The fullctest -R agc_gives 373/374 here, and the one failure,agc_driver_f32_compare_constant(#3536), isn't in your list. So these failures come from the Vega iGPU or the driver it gets, not from AMD's Windows driver in general.Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-12T05:19:44Z.
Adding RDNA 2 between @LeandroLP23's RDNA 3.5 and your GCN 5, because one of the 35 does reproduce here, so the split is not quite Vega-only.
Current
maind146ec1b6, Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, AMD Vulkan cache andANYPS5_SHADER_CACHE_DIRemptied before every run.AMD Radeon(TM) Graphics0x164e(Ryzen 9 7900 iGPU)0x1638(Ryzen 5 5600G iGPU)0x1114driverInfo25.10.30.02 (AMD proprietary shader compiler)24.30.58.08, LLPClds_mixed_width_atomicsfails here, deterministically (3/3), and it does not return a wrong value — it takes the submission down:0xdeadbeef…is the untouched fill, so nothing was written back. Both NVIDIA adapters in this machine (RTX 4070 SUPER, GTX 1650 SUPER) pass it on the same build.The other 34 all pass, including the whole "draw leaves the target unwritten" family and the f16/packed-ALU cases. So that family does look GCN 5 specific as @LeandroLP23 concluded, but
lds_mixed_width_atomicsspans GCN 5 and RDNA 2 while passing on RDNA 3.5 — that one is probably worth its own issue rather than being folded into a Vega report.Whole-set numbers here:
agc_driver_is 327/329, 3 skipped (mesh,ngg_vertex_wave_reduction,oversized_dispatch, none of them in your list, so all 34 of your others genuinely ran). The only other failure ispixel_interlock, which isn't in your list and is already #2009 on this same class of hardware.One variable that may matter across the three reports: this driver's
driverInfosays AMD proprietary shader compiler, while @LeandroLP23's says LLPC. If AMD's Windows stack uses different shader compilers depending on version or part, that cuts across the architecture comparison.Pinning the adapter
OpenVulkanTestDevice()catches a device-selection failure and skips while reporting success, soANYPS5_GPUon its own looks green even when it matches no adapter at all.ANYPS5_REQUIRE_VULKAN=1makes a skip a failure, andANYPS5_GPU=NoSuchAdaptershould then fail and list the adapters as a control.tests/BdaDevice.cppis a separate harness that ranks by device type and ignoresANYPS5_GPU.Imported from boykopovar/AnyPS5. Originally posted by jackthereaper2006 on 2026-10-12T06:29:13Z.
Adding GCN 5 on Linux with RADV: the same device ID as yours (
0x1638, both Cezanne APUs) on a different driver. All of the 35 that can run pass here, on your commita11c8f7f7and on currentmain, so the failures follow AMD's Windows driver rather than the GCN 5 hardware.AMD Radeon Graphics (RADV RENOIR)0x1638(Ryzen 5 PRO 5650U iGPU)0x1638(Ryzen 5 5600G iGPU)GCC 16.2.1, Release,
BUILD_TESTING=ON, built twice:a11c8f7f7andmainb42ef24e. Every run hadMESA_SHADER_CACHE_DISABLE=true(ctest already setsANYPS5_NO_SHADER_CACHE=1), and the 35 ran 3 times on each commit (--repeat until-fail:3). The test log showsSelected GPU name=AMD Radeon Graphics (RADV RENOIR) vendor=0x1002 device=0x1638 subgroup=64.interpolation_f16:skipped, the device has no fragmentShaderBarycentric. RADV does not expose it on GCN 5, so that test is not comparable with yours.lds_mixed_width_atomicspasses here on both commits. With @ycbuzi's RDNA 2 result, it fails on AMD's Windows driver on two generations and passes on GCN 5 with RADV.ctest -R '^agc_':main: 429/429. Skipped:mesh,interpolation_f16,ngg_vertex_wave_reduction,oversized_dispatch.a11c8f7f7: 376/377. The failure isagc_driver_f32_denormal_flush(lane 20 no float mode v_fma_f32 v14, v4, v5, v6 is 0x00800000, expected 0x00ffffff). It is not in your list, and it passes onmainsince6f527fa9(#3822).Besides the driver, the OS and the GCC that built AnyPS5 also differ (16.2.1 here, WinLibs 15.2.0 on yours). I have not compared the recompiled SPIR-V with yours.
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-12T07:42:39Z.
One more data point for the compiler question: on the Radeon 860M (RDNA 3.5, AMD Windows driver 32.0.13058.8001,
driverInfo24.30.58.08LLPC),agc_driver_lds_mixed_width_atomicspasses 3/3 on currentmainfedcb3c81, with the AMD Vulkan cache and the shader cache cleared before each run. It fails on AMD's Windows driver on RDNA 2 (@ycbuzi, proprietary shader compiler) and passes on GCN 5 with RADV (@jackthereaper2006). Taken together, that points at the shader compiler rather than at the architecture or at Windows itself.Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-13T00:51:10Z.
RDNA 2 on Linux with RADV, to go with @ycbuzi's RDNA 2 run on AMD's Windows driver: the full suite passes, including the two tests that fail there.
0x164e25.10.30.02lds_mixed_width_atomicspixel_interlockmeshCombined with @jackthereaper2006's GCN 5 run on RADV, both GCN 5 and RDNA 2 pass everything on RADV. So
lds_mixed_width_atomicsfollows AMD's Windows stack, not RDNA 2 hardware, like the rest of this list.Whole-suite numbers on
main1c5e62878:ctest: 995/995. The 12 skips are 10video_outtests (headless machine),ngg_vertex_wave_reduction(RADV reports a subgroup size of 64) andoversized_dispatch(RADV's workgroup count limit isUINT32_MAX, so nothing splits).agc_driver_*withANYPS5_REQUIRE_VULKAN=1: 345/345 ran on the V620. Only the same two capability skips remain.Setup
BUILD_TESTING=ON.VK_ICD_FILENAMESrestricted toradeon_icd.json, so llvmpipe could not be picked;vulkaninforeportsAMD Radeon PRO V620 (RADV NAVI21).ctest -j8 --timeout 300.Tested and written by Claude (AI assistant) on a contributor's machine.