Intel UHD 770: vop1_float_unary, sdwa_float_selectors, vopc_compare and buffer_unaligned_base fail #2114
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 johnmaia on 2026-10-09T08:59:40Z.
Four execution tests fail on an Intel UHD Graphics 770 and pass on an RTX 4080 in the same machine. The
vop3_mad_i64failure on this GPU is #1246; these are the others.Windows 11, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON,ANYPS5_REQUIRE_VULKAN=1. UHD Graphics 770 (Raptor Lake-S, device 0xa780, driver 101.6129, Vulkan 1.3.295) selected withANYPS5_GPU="UHD Graphics 770". Base:main6cc0503dplus #2093 (needed for the tests to build). Full ctest: 489/494 on the UHD 770, 494/494 on the RTX 4080.agc_driver_vop1_float_unarylane 13 fract_f32 v5 is 0x3f7fbd2b, expected 0x3f7fbd2c(1 ulp)agc_driver_sdwa_float_selectorslane 6 min_f16 BYTE_0/WORD_1 -> WORD_0 is 0xfda00047, expected 0xfda00000agc_driver_vopc_comparethread 0 compare 36 is 0, expected 1. Compare 36 is the f16!(a >= b)row, and thread 0 has both operands NaN (0x7e00), so the unordered compare returns falseagc_driver_buffer_unaligned_baseShaderRecompiler::Recompile: SPIR-V module emission failed: 64-bit buffer atomics need shaderBufferInt64AtomicsNotes:
vop1_float_unarypasses on the UHD 770 with open #1250 (V_FRACT_F32 from the exact fraction of |x|) merged on the same base, 490/494 with the other three failures unchanged, and still 494/494 on the RTX 4080.buffer_unaligned_basefails because the device lacksshaderBufferInt64Atomics, not because of a wrong result. The test has a 64-bit atomic case, so it probably needs to skip that case on devices without the feature, as other tests skip what the device can't run.sdwa_float_selectorsandvopc_comparegive wrong results with no error. I haven't narrowed down whether they come from our SPIR-V or the Intel driver, as #1246 did with a standalone shader.I can rerun anything on this machine (it also has the RTX 4080 for comparison).
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Negesin on 2026-10-09T09:10:13Z.
I'm going to work on the
agc_driver_buffer_unaligned_basepart of this issue.The goal is to keep the existing unaligned-buffer coverage running, but skip the 64-bit atomic subcase when the Vulkan device does not support
shaderBufferInt64Atomics, following the pattern already used by other execution tests.I'll keep the change scoped to this test.
Imported from boykopovar/AnyPS5. Originally posted by st44rplatinum on 2026-10-09T14:12:15Z.
Data point from an older Intel generation: three of the four reproduce with identical values, and
vopc_comparedoes not.Windows 10 22H2 (19045), WinLibs GCC 15.2.0 r7, Release,
-DBUILD_TESTING=ON,maind70b8998,ANYPS5_REQUIRE_VULKAN=1. Intel UHD Graphics 630 (Coffee Lake, device 0x3e92, driver 30.0.101.1339) selected withANYPS5_GPU="UHD Graphics 630"(log:Selected GPU name=Intel(R) UHD Graphics 630 vendor=0x8086 device=0x3e92). 3 runs each:agc_driver_vop1_float_unaryfails 3/3:lane 13 fract_f32 v5 is 0x3f7fbd2b, expected 0x3f7fbd2c, same as the UHD 770.agc_driver_sdwa_float_selectorsfails 3/3:lane 6 min_f16 BYTE_0/WORD_1 -> WORD_0 is 0xfda00047, expected 0xfda00000, the same bits as the UHD 770.agc_driver_vopc_comparepasses 3/3.agc_driver_buffer_unaligned_basefails 3/3:64-bit buffer atomics need shaderBufferInt64Atomics, as on the UHD 770.All four pass on the GTX 1050 Ti (driver 582.66) in the same machine.
So the
sdwa_float_selectorsresult is bit-identical across Gen9.5 and Xe and across driver branches 30.0.101 and 101.6129, while thevopc_comparefailure seems specific to the newer generation or driver.Imported from boykopovar/AnyPS5. Originally posted by verapoint on 2026-10-09T16:07:21Z.
Same on Intel UHD Graphics 630, newer driver 31.0.101.2141 (Windows, WinLibs GCC 15.2.0 r7, Ninja, Release,
-DBUILD_TESTING=ON, currentmain). The only Vulkan device on this machine.Same three as above:
agc_driver_vop3_mad_i64fails with the neg1 hi0x00008000from #1246.Four more not listed here or in #1246:
All 8 fail again with
--rerun-failed.agc_driver_flat_storetimed out once in the parallel run and passes alone. Full log attached. Happy to run more diagnostics or test a PR branch on this GPU.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by verapoint on 2026-10-09T16:19:58Z.
Follow-up on
agc_driver_ds_swizzleon the UHD 630 (driver 31.0.101.2141). Observations only, not a diagnosis.vulkaninforeportssubgroupSizeControl = true,computeFullSubgroups = true,requiredSubgroupSizeStagesincludesCOMPUTE_BIT, min/max subgroup size 8/32. SocomputeWave32is set and the pipeline getsrequiredSubgroupSize = 32.bitmask_identity, which returns0x00000010(its own lane index) instead of its input0xc88b2875.agc_driver_ds_permutepasses on the same device.EmitBpermuteU32andEmitSwizzleU32both end inEmitDsMaskedLaneRead, so the shared shuffle works here. The difference is in the swizzle-only part (the scratch store/load of the source andEmitDsSwizzleTargetLane).The break at lane 16 matches Intel running SIMD32 as two SIMD16 halves, which may point to a driver miscompile, but I have not confirmed that. Happy to test a variant or a newer driver.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by st44rplatinum on 2026-10-10T13:17:47Z.
I reran @verapoint's extra tests on my UHD 630 with the older driver, 30.0.101.1339 (theirs is 31.0.101.2141). Same machine and setup as my comment above,
maind70b8998, 3 runs each. All five fail the same way with the same values:agc_driver_ds_swizzle:ds_swizzle wave32: lane 16 bitmask_identity is 0x00000010, expected 0xc88b2875agc_driver_f32_denormal_flush:lane 20 no float mode v_fma_f32 v14, v4, v5, v6 is 0x00800000, expected 0x00ffffffagc_driver_f64_rounding:lane 3 fract lo is 0xffffffff, expected 0x00000000agc_driver_f64_conversions: crashes with an access violation (0xc0000005)agc_driver_vop3_mad_i64:lane 6 i64 neg1 hi is 0x00008000, expected 0x00000000(#1246)agc_driver_ds_permutepasses 3/3 here too. All six pass on the GTX 1050 Ti (driver 582.66) in the same machine.So none of these are new in the 31.x driver: they are identical on 30.0.101.1339, including
ds_swizzlebreaking at lane 16 whileds_permutepasses.Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T14:16:45Z.
Data point from a newer Intel generation: Arrow Lake.
Windows 11 Home (26200), WinLibs GCC 15.2.0 r7, Release,
-DBUILD_TESTING=ON,main8b812318. Intel Graphics in a Core Ultra 9 275HX (device 0x7d67, driver 32.0.101.8991, wave32), selected withANYPS5_GPU=Intel(log:Selected GPU name=Intel(R) Graphics vendor=0x8086 device=0x7d67 subgroup=32). The same build passes 709/709 on the RTX 5060 Laptop GPU (driver 32.0.16.1742) in the same machine.Full ctest on the iGPU: 678 passed, 21 skipped (16
agc_*for missing shaderFloat64, shaderResourceMinLod, 64-bit image atomics or shader clock, plus the 5 usualvideo_outskips), 10 failed. Failures rerun serially with--repeat until-fail:3:agc_driver_vop1_float_unarylane 13 fract_f32 v5 is 0x3f7fbd2b, expected 0x3f7fbd2cagc_driver_vopc_comparethread 0 compare 36 is 0, expected 1agc_driver_sdwa_float_selectorsagc_driver_buffer_unaligned_baseagc_driver_f64_fma_subnormalsShaderRecompiler::Recompile: 64-bit float instructions need the Float64 capability, which the device lacksagc_driver_fp16_overflowagc_driver_lds_beyond_device_limitvkWaitForFences recorder: Vulkan result -4(VK_ERROR_DEVICE_LOST) after 4.4 sagc_driver_meshFATAL: unhandled exception 0xc0000005agc_driver_pixel_interlockFATAL: unhandled exception 0xc0000005agc_driver_vertex_fetchFATAL: unhandled exception 0xc0000005agc_driver_prepared_exportsFATAL: unhandled exception 0xc0000005agc_driver_pixel_barycentric_emulationctest --parallel 6onlyThe two Float64 failures are test-side.
agc_driver_f64_fma_subnormalsrunsv_fma_f64/v_div_fmas_f64, andagc_driver_fp16_overflowrunsv_fma_mixlo_f16, which is lowered throughFPInterpolateF16with f64 arithmetic (TechnicalDebt, "v_fma_mixlo_f16 and v_fma_mixhi_f16 ... need the Float64 capability"). Both lack the shaderFloat64 check the other f64 tests got in #1259. With the same check added afterOpenVulkanTestDevice()they skip on the Arrow Lake iGPU and still pass 3/3 on the RTX 5060;tools/check_conventions.pyandtools/check_skips.py --job windowspass:(same lines in
tests/execution/F64FmaSubnormals.cppandtests/execution/Fp16Overflow.cpp). Commit1dd90b57onmain8b812318; I can put it on a public branch if that helps.The device loss and the four access violations are new on Intel as far as I can find. I haven't diagnosed them yet. I'll look for where they fault (our code or the driver) and post what I find.
Written with AI assistance; I ran and checked every result above on this machine.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T16:12:13Z.
Follow-up on the Arrow Lake results above, since two of the items here now have root causes and fix branches:
agc_driver_vopc_compare: on Arrow Lake compare 36 isn't a NaN case. Every mismatch is the f16 denormal0x0001against ±0, becauseUnpackHalf2x16flushes f16 denormals on Intel's Windows driver withoutDenormPreserve 16. Details and fix in #2822. If anyone with a UHD 770 can try it, it'd be great to know if that branch fixes compare 36 for you too.agc_driver_meshdrawing nothing was the mesh stage running narrower than 32 lanes (#2815).agc_driver_lds_beyond_device_limitis #2805; ThatsLeo's fix there passes on Arrow Lake too.The
f64_fma_subnormals/fp16_overflowskips are onfix/agc-tests-skip-without-float64(7217a416), replacing the1dd90b57I mentioned above.Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T16:24:06Z.
With the fixes from this thread combined, Arrow Lake passes everything: 709/709, three full runs in a row, with default settings (pipeline libraries and LTO on,
ctest --parallel 6). The RTX 5060 in the same machine is 709/709 on the same build.The six changes, all cherry-picked onto
main57f96fd2without conflicts:mainvertex_fetch,pixel_interlock,prepared_exports,pixel_barycentric_emulation(access violations inigc-default64.dll)758eeb9fmesh(draws nothing)377829ecvopc_compare7158e9e8lds_beyond_device_limit(device lost)e894f909vop1_float_unaryfractrounding480b0480(on hold for #981)f64_fma_subnormals,fp16_overflow7217a416All six together are on
Silverash-i8/AnyPS5-fork:combined/intel-fixes(b75ce34b, original authors kept) in case anyone with a UHD 770 or 630 wants to try one checkout instead of six. It's only meant for testing; each fix stands on its own branch.AI-assisted (Claude Code); every number above is from runs on this machine.
Imported from boykopovar/AnyPS5. Originally posted by verapoint on 2026-10-10T19:39:52Z.
Tested
combined/intel-fixes(b75ce34b) on the UHD 630, driver 31.0.101.2141, against its basemain57f96fd2built the same way.The branch fixes
agc_driver_vop1_float_unaryhere: it passes on b75ce34b and fails on57f96fd2with the original lane 13fract_f32 v50x3f7fbd2b, expected 0x3f7fbd2c.Full run on the branch: 700/709 passed, no regressions against the base. These fail on both b75ce34b and
57f96fd2:ds_swizzle,f32_denormal_flush,f64_roundingandf64_conversions(access violation) fail as reported above.nan_quieting's v_fract_f64 low word 0xffffffff matchesf64_rounding's fract, andlds_atomics64breaks at lane 16 likeds_swizzle. The UHD 630 has shaderFloat64, so the new Float64 skips do not apply andf64_fma_subnormalsstill runs.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T22:59:05Z.
Status on today's
main(91b13413), Windows 11, WinLibs GCC 15.2.0 r7, Release, fullctest -j6:mainagc_driver_mesh377829ec), also confirmed on Mesa ANV thereagc_driver_vopc_compareagc_driver_vop1_float_unaryfract_f320x3f7fbd2b, expected 0x3f7fbd2cagc_driver_lds_beyond_device_limitVK_ERROR_DEVICE_LOSTagc_driver_f64_fma_subnormalsagc_driver_fp16_overflowfix/agc-tests-skip-without-float64(7217a416, theFp16Overflow.cpphalf)With those applied, all of them passed here earlier (709/709 on the older test count).
AI-assisted (Claude Code); I ran both suites above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T01:12:42Z.
Update on
main06da1176, same machine and setup as my last table (Windows 11, WinLibs GCC 15.2.0 r7, Release, fullctest -j6), with the one-line test fix from #3207 applied:guest_filesystem, which needs the symlink privilege on Windows (#3169 / #3178), not a GPU issue.guest_filesystem, four are left, all with the same pending fixes as before:vopc_compare(#2822 / #1463),vop1_float_unary(#1250),f64_fma_subnormals(#2860) andfp16_overflow(theFp16Overflow.cpphalf offix/agc-tests-skip-without-float64).Fixed since the last table:
agc_driver_mesh(#2996) andagc_driver_lds_beyond_device_limit(#3015). Two Intel failures that came in with newermainare covered too:agc_driver_lds_mixed_width_atomicslost the device 3 runs out of 3 on181420f8and passes 20/20 on06da1176, which has #3015's lock change, and the fouragc_driver_prepared_shadersruns are #3207.AI-assisted (Claude Code); I ran both suites on my machine.
Imported from boykopovar/AnyPS5. Originally posted by benadizd on 2026-10-11T08:24:24Z.
Data point from Linux / Mesa on an older Intel iGPU: 787/790 on
main6a8f0ebb.Fedora 44, kernel 7.2.9, GCC 16.2.1, Release,
-DBUILD_TESTING=ON. Intel UHD Graphics 620 (WHL GT2, device 0x3ea0), Mesa ANV 26.2.4, Vulkan 1.4.354. Selected automatically over llvmpipe.agc_driver_vop1_float_unarylane 13 fract_f32 v5 is 0x3f7fbd2b, expected 0x3f7fbd2c, same as UHD 770 / 630 / Arrow Lakeagc_driver_sin_cos_near_zerolane 24 v_sin_f32 is 0x3f167934, expected 0x3f167919 (tolerance 12 ulp)agc_driver_gated_dispatch_captureThe
sin_cos_near_zerofailure differs from the UHD 630 one above (lane 0v_cos_f32). Lane 24 is 0.1 turn (0x3dcccccd), so sin 36°, and the result is 27 ulp off. That is outside the near-zero range909281c9covers, so it looks like the plain precision of Mesa's/the hardware's sin rather than the near-zero path.f64_fma_subnormalsfailed on1690db9a(v_fma_f64lane 0 flushed to0x8000000000000000, expected0x800d3be6095b3463) and passes on6a8f0ebb.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:29:33Z.
#3770 fixes the
agc_driver_sin_cos_near_zerofailure reported here (lane 24, 27 ulp on Intel UHD): v_sin/v_cos now take an exact series when the driver is more than 4 ulp from it. The four failures in the title are still open.Imported from boykopovar/AnyPS5. Originally posted by verapoint on 2026-10-12T00:19:25Z.
@adriadam10
agc_driver_sin_cos_near_zerostill fails after #3770 on Intel UHD 630, Windows driver 31.0.101.2141 (WinLibs GCC 15.2.0 r7, Release), mainbab7b3285(containsae7dbfa9c), rebuilt before the run:Same value as before #3770. Lane 0's input is 0x80800000 (-FLT_MIN), so the expected result is exactly 1.0; the driver's value is about 500 ulp below it. Happy to test a change on this GPU.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-17T13:39:29Z.
Rerun on the reporter's GPU model: all four tests in the title now pass on the UHD 770.
Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built,
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088, Vulkan 1.4.323, selected withANYPS5_GPU=Intel.main47a266cf9.agc_driver_vop1_float_unaryagc_driver_sdwa_float_selectorsagc_driver_vopc_compare,_f64,_tableagc_driver_buffer_unaligned_baseshaderBufferInt64Atomics = false, so its 64-bit atomic case is skipped (4491fa967)agc_driver_vop3_mad_i64(#1246)#1250 (
fract_f32) and #1463 (f16 conversion, linked above forvopc_compare) are merged. On this GPU,agc_driver_sin_cos_near_zeroandagc_driver_gated_dispatch_capturefrom the comments also pass, in a full CTest run atmainc9e6c45de;f64_fma_subnormalsandfp16_overfloware skipped (no f64 here). Unless someone still sees the title's failures on another Intel GPU, this can be closed.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:45:59Z.
Thanks for the current-main retest. The four original failures now pass on the UHD 770 at
47a266cf9; the 64-bit atomic case correctly skips because the device lacksshaderBufferInt64Atomics. The earlierfract_f32and f16 conversion/compare cases are covered by merged #1250 and #1463. This report no longer identifies an outstanding failure on the tested Intel GPU.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T02:55:37Z.
Retested on the UHD 770 at main
47a266cf9: all four tests pass (#1250 and #1463 cover the earlier fract_f32 and f16 cases). Closing; reopen if another Intel GPU still fails.