Repository navigation
Conversation
|
Tested MSVC (VS 18)
So the rule's fixture gives the expected words on a third NVIDIA generation (Pascal), after the RTX 4090. No game files; no census (I have no game copy here). AI-assisted (Claude Code). |
|
Tested
AI-assisted. |
|
Tested
AI-assisted. |
|
Tested This card reports
AI-assisted (Claude Code). |
|
Tested This driver lists the fragment stage in
Not run: the full semantic suite, and the corpus census you asked for (no game copy here). AI-assisted: yes (Claude ran the build and tests; results checked by me). |
|
Tested ce456d3 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass Commands:
AI-assisted (OpenCode) |
SHADER-1166, claimed here, carried into the table in #7496.
What and why
An EXECZ or EXECNZ branch can have arithmetic on both sides and still be exact on NVIDIA.
An active half takes the same side as the full wave.
An empty half can take the other side, but all its vector writes stay off.
Analysis.exec_local_diamondaccepts the branch only with these conditions:The vector condition is necessary on main. A narrowed write can hide taint still held by inactive lanes (#4619).
The tests cover a prior lane id, a prior lane count, and an earlier narrowed write that already hid the taint.
The scalar check is conservative: it also refuses a read before the vote or after an unconditional overwrite.
Memory, exports, nested branches, loops, and every EXEC write in the sides stay outside this rule.
This is a small part of the 583 refused
unsafe-execz-branch + other-side-joinsshaders reported on #5970.Its corpus coverage is not measured.
It does not include the
other-side-exitswork or the complementary-mask rule of #5747.Tests
Base: main
511e3826b. Windows 11, Python 3.14.7, LLVM 21.1.8, SPIRV-Tools v2026.4, Vulkan SDK 1.4.363.1.All inputs are hand-written. No game files were read or used.
spirv_wave_interp.py, 1x64 against 2x32spirv-valtest_wave64*.pytest_w64*.pymake_game.py --help,git diff --check,check_no_game_data.pyThe two failing files are
test_image_store_d16(one failure) andtest_image_atomics_guard(47 failed subtests).Both failures also occur on the clean main archive with the same Python and toolchain. The final branch run took 363 seconds with 16 jobs; main took 511 seconds with 8 jobs. The 38 new listings also pass on a clean merge with newer main
8bcf3eba7.The newline guard also fails on main and this branch at two unchanged writers:
tools/leonida_tui.py:753andtools/wave_diff.py:373.The resource hygiene tests pass.
New GPU fixture:
ps_w64_a_execz_diamond, with both branch directions and local scalar arithmetic.On the RTX 4090, driver 621.01, the harness prints
fragment subgroup size: 32.The fixture gives the expected words at required size 32.
It also gives the expected words on the AMD Radeon iGPU, Windows driver 32.0.21043.5001, at default size.
The AMD driver does not apply a required fragment size here, so no 64-versus-32 hardware comparison is claimed.
Request: census from your own game copy
Please compare main
511e3826bwith this branch and post counts only:Please include tier counts, translated and valid counts, and the number of changed binaries.
I expect no binary changes. I cannot estimate how many corpus shaders this small rule accepts.
Related work
Read #4541, #5747, #4619, #6963 and the other open wave64 classification rules before this change.
This rule changes only the EXEC case in
vote()and adds one helper.It needs no code from an open PR.
The shared
docs/design.mdrow can need a text merge when another wave64 PR lands.AI-assisted: Codex wrote and tested this change.