Repository navigation
Work around Mesa ANV descriptor index compiler crash - #2888
Conversation
|
Code read of AI-assisted review (Claude Code). |
|
made new commit dd506da clarified that generated shader metadata records GroupNonUniform and GroupNonUniformBallot under capabilities, the features field lists optional Vulkan device features. |
|
Tested dd506da (merged on current main) on RTX 3090, driver 616.56, Windows 11 23H2: pass, as a non-ANV regression check. This does not exercise the Mesa ANV crash itself. With the workaround in the translator, AI-assisted test run. |
|
Tested dd506da on Steam Deck LCD (Van Gogh, RADV Mesa 26.2.0-devel, SteamOS 3.9.5, kernel 7.2.7-valve2-2-neptune-72-g31504582a073): pass. Commands run (from the PR worktree, against the existing
The 14 skips are the expected D3D12-owned fixtures and AI-assisted (OpenCode). |
Kam471
left a comment
There was a problem hiding this comment.
The new test fails on base (both lookup ids used directly by %images/%samplers OpAccessChains), and the full semantic suite passes 4137/4137. But the broadcast is not ANV-gated: it is emitted for every non---wave64-emulate lookup, so the workaround changes output on every driver, not just the affected Mesa path.
Also, uses_subgroup adds an unused GroupNonUniformShuffle, an %sg_lane Input and Flat, while docs/design.md claims only GroupNonUniform + GroupNonUniformBallot. The emulated wave64 output is byte-identical to main.
Please gate the broadcast to the affected ANV/Mesa path (or explain why a global broadcast is correct), and either remove the unused capability/interface or correct the docs. The GPU claims were not reproducible here.
|
Thanks for testing on both system but both machine dont use Intel ANV so neither of those directly reproduce the original Mesa crash, my Alder Lake ANV results cover that case. also Commit 0ea7175 now tracks the broadcast separately so it no longer adds the unused shuffle capability or subgroup-lane input, I left the broadcast in all non-emulated translations because the translator generates SPIR-V offline without knowing the eventual Vulkan driver and the descriptor key words come from SGPRs, making the broadcast an identity operation. The docs and regression test now cover the generated capabilities and interface. |
|
Tested 0ea7175 merged onto main 1628210 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
|
The original crash is specific to Intel ANV, so this test also doesn’t exercise the case too Intel ANV is the open source Vulkan graphics driver for Linux within the Mesa 3D graphics library |
|
Windows check: RTX 5080 + RTX 3070 Ti (NVIDIA 621.01) and AMD Radeon 610M iGPU (Ryzen 9 9950X3D, driver 32.0.13018.6), Windows 11, MSVC RelWithDebInfo/Ninja, Python 3.12. Tested head 0ea7175 (PR currently conflicts with main).
Synthetic fixtures only, no game files. AI-assisted (opencode); runs on my machine. |
# Conflicts: # docs/design.md
…in since ItsNotRexed#2888 (TEST-399) The Known problems row said the seven texture-sampling tests crash on Mesa ANV before 26.3 and recommended Mesa 26.3.1. On an Arrow Lake-U iGPU (Xe-LPG) with Mesa 26.2.6, shader cache off, all seven crash at cc70708 and pass at 7ddd93d (ItsNotRexed#2888, SHADER-528: OpGroupNonUniformBroadcastFirst on the desc_lookup index) and at 3faac55. The row now says so and recommends current main first; Mesa 26.3.1 stays as the compiler fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue as: #2516 (comment)
What and why
On Alder Lake UHD with Mesa ANV 26.2.7, the
cs_sample_lz_int_d16andps_ssharpshader tests crash inside the Intel Vulkan driver during pipeline creation. Broadcasting the descriptor lookup result before using it as an image or sampler array index avoids the crash. The wave64 emulation path is unchanged.Adds a translator regression test and documents the rule in
docs/design.md.Tested
tests/test_desc_cache.pytests/test_docs_design_rows.pyChecklist
docs/design.md, with how it was confirmed.