Skip to content

docs/testing.md: the Intel ANV texture-test crashes are avoided on main since #2888 (TEST-1402) - #6002

Open
leander-ow wants to merge 2 commits into
ItsNotRexed:mainfrom
leander-ow:docs/anv-texture-crash-row
Open

leander-ow wants to merge 2 commits into
ItsNotRexed:mainfrom
leander-ow:docs/anv-texture-crash-row

Conversation

@leander-ow

@leander-ow leander-ow commented Nov 23, 2026 •

Copy link
Copy Markdown

Claimed in the coordination issue as: TEST-1402 (#6089; claim: #5781 (comment))

Depends on: none

What and why

The Known problems row in docs/testing.md (TEST-399) says that cs_sample_lz_int_d16, ps_sample_implicit_sint, ps_ssharp, ps_tex, ps_texture_mip0, ps_texture_sample and ps_texture_sample_d16 crash on Mesa ANV before 26.3, and it recommends Mesa 26.3.1. But @iksZ2's TEST-641 rerun passes all seven on an Arc B580 with Mesa 26.2.5.

Measured on an Arrow Lake-U iGPU (Xe-LPG), Mesa ANV 26.2.6, Linux, with MESA_SHADER_CACHE_DISABLE=true:

commit the seven tests
4eb6155d (the original Arrow Lake report) crash (exit -11)
cc707084 (first parent of #2888's merge) crash (exit -11)
7ddd93de (#2888, SHADER-528) all pass
3faac557 (main) all pass

#2888 wraps the desc_lookup index in OpGroupNonUniformBroadcastFirst, and that avoids the nir_opt_gcm crash. Found with a first-parent bisect over 4eb6155d..3faac557, then both sides of the merge were checked directly. The row now says the crashes need a translator from before #2888, gives these measurements, and recommends current main first. Mesa 26.3.1 stays in the row as the fix in the compiler itself.

Tested

  • python -I tests/test_docs_table_rows.py, python -I tests/test_docs_design_rows.py: OK
  • scripts/run_gpu_tests.py on main 3faac557: 164/217 passed, 53 skipped (wave64 on a 32-wide device, and others), 0 failed
  • GPU: Intel(R) Graphics (ARL), Arrow Lake-U, Mesa ANV 26.2.6, Vulkan 1.4.354; llvm-mc 21.1.8, SPIRV-Tools v2026.4, GCC + Ninja

Synthetic tests only, no game files. AI-assisted (Claude Code).

🤖 Generated with Claude Code

…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>
@leander-ow
leander-ow force-pushed the docs/anv-texture-crash-row branch from a712b80 to d9127d5 Compare November 23, 2026 13:08
@leander-ow leander-ow changed the title docs/testing.md: the Intel ANV texture-test crashes are avoided on main since #2888 (TEST-399) docs/testing.md: the Intel ANV texture-test crashes are avoided on main since #2888 (TEST-1402) Nov 23, 2026
@junaydirfan

Copy link
Copy Markdown

Checked on an Intel Raptor Lake-S iGPU (Xe-LP), Mesa ANV 26.3.1, Linux, MESA_SHADER_CACHE_DISABLE=true. The Mesa sentence holds. The #2888 explanation no longer describes current main for six of the seven tests, though.

Mesa 26.3.1 fixes it in the compiler: confirmed. With cc707084's translator and test programs (before #2888, no broadcast in any of the seven), all seven pass here. They also pass at 7ddd93de and at main 561b65a8.

Current main reads the index differently in pixel shaders. I counted OpGroupNonUniformBroadcastFirst in the SPIR-V run_gpu_tests.py writes for each test:

test cc707084 7ddd93de (#2888) main 561b65a8
cs_sample_lz_int_d16 0 4 4
the six ps_* tests 0 2 each 0

#4225 (SHADER-731, 4f760c1a, merged as 68ac2087) added a wave32_fragment branch to desc_lookup (tools/rdna2spirv.py:11399). Since then a wave32 pixel shader takes the index through OpGroupNonUniformShuffle of wave lane 0 and returns before the broadcast. The main you measured, 3faac557, doesn't contain #4225 (git merge-base --is-ancestor 68ac2087 3faac557 is false), so it still had the broadcast in the pixel shaders.

So "since #2888 the translator wraps the descriptor index … in OpGroupNonUniformBroadcastFirst" is true for cs_sample_lz_int_d16 but not for the six ps_* tests on current main. Whether the shuffle form also avoids the nir_opt_gcm crash on Mesa 26.2.6 hasn't been measured. Mesa 26.3.1 can't show it, because it passes either way. A rerun of the seven on your Arrow Lake at 561b65a8 would settle the "Update to current main" advice. If they pass, the row could name both forms (the broadcast, and the lane-0 shuffle in wave32 pixel shaders since #4225).

… wave32 pixel shaders since ItsNotRexed#4225 (TEST-1402)

Review on ItsNotRexed#6002: since ItsNotRexed#4225 the six ps_* tests take the desc_lookup index
through an OpGroupNonUniformShuffle of lane 0, not the broadcast. Measured
on Arrow Lake-U (Xe-LPG), Mesa ANV 26.2.6, shader cache off: all seven
pass at 561b65a too (cs_sample_lz_int_d16: 4 broadcasts; each ps_* test:
2 shuffles, no broadcast). Also notes the reviewer's Mesa 26.3.1 run at
cc70708.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leander-ow

Copy link
Copy Markdown
Author

Thanks @junaydirfan, you're right: 3faac557 doesn't contain #4225.

I reran the seven on Arrow Lake-U (Xe-LPG), Mesa ANV 26.2.6, at 561b65a8, with test programs rebuilt from that commit and MESA_SHADER_CACHE_DISABLE=true. All seven pass. I counted the ops in the SPIR-V run_gpu_tests.py wrote, and they match your table:

test OpGroupNonUniformBroadcastFirst OpGroupNonUniformShuffle
cs_sample_lz_int_d16 4 0
the six ps_* tests 0 2 each

So the lane-0 shuffle form avoids the nir_opt_gcm crash on 26.2.6 as well. 43813ca updates the row: it names both forms (the broadcast, and the lane-0 shuffle in wave32 pixel shaders since #4225), adds 561b65a8 to the measured commits, and includes your Mesa 26.3.1 run at cc707084.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants