Skip to content

Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) - #3086

Open
Jolymmiles wants to merge 4 commits into
ItsNotRexed:mainfrom
Jolymmiles:subgroup-temps
Open

Jolymmiles wants to merge 4 commits into
ItsNotRexed:mainfrom
Jolymmiles:subgroup-temps

Conversation

@Jolymmiles

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: new SHADER item 1, --subgroup-temps (from my finding).

Depends on: #2886 (it lets the 32-lane tests run on MoltenVK; this PR's first commit is #2886's, only the second is new).

What and why

MoltenVK turns SPIR-V into MSL with SPIRV-Cross. SPIRV-Cross forwards a value that is read once into the expression that reads it, and it writes OpLogicalAnd / OpLogicalOr / OpSelect as the short-circuiting && / || / ?:. A subgroup operation forwarded into their right side runs only in the invocations that evaluate it, so a ballot misses the others.

  • cs_dpp_ops reads 100 instead of 10 in lane 1 on MoltenVK 1.4.2. In the MSL it gets, in_row && spvSubgroupBallotBitExtract(spvSubgroupBallot(...), src) is one expression, and the shuffle is inside ?:.
  • SPIRV-Cross 5c372ffb keeps such values out of ?:, but SPIRV-Cross head (57e4efcc, MoltenVK main) still moves one into &&. A 32-invocation plain-Vulkan repro (l != 0 && ballotBitExtract(ballot(true), l - 1), hand-written SPIR-V) is wrong in lane 1 on MoltenVK 1.4.2 and on main, and right on KosmicKrisp. I have a ready-to-file SPIRV-Cross report and haven't filed it.

With --subgroup-temps, every OpGroupNonUniform* result r of type T is followed by a dead r_sgt = OpCopyObject T r in the same block. That second read makes SPIRV-Cross bind r to a temporary where it is computed (bool _25 = spvSubgroupBallotBitExtract(...); ... && _25), which every invocation of the block runs. The driver's compiler drops the copy.

The flag is chosen like the other fallbacks:

  • make_game.py and run_gpu_tests.py turn it on where tools/vk_subgroup_info.py reports driver_id 14 (MoltenVK).
  • LEONIDA_SUBGROUP_TEMPS=1/0 overrides it in the runner. build.py, crosslane_fuzz.py and valu_fuzz.py take only the variable.
  • Without the flag the output is unchanged.

The contract-table row is in docs/design.md ("Subgroup operations out of SPIRV-Cross's short-circuit expressions"), and docs/testing.md's cs_dpp_ops row is updated. run_gpu_tests.py's device query now caches the whole vk_subgroup_info.py answer (_device_info), the same hunk as #2904.

Tested

Apple M3 Max, macOS 27.3; base = #2886's head, branch = this, on the same main (16282101):

Config base branch
MoltenVK 1.4.2 (Homebrew) 132/189, cs_dpp_ops FAIL 133/189, cs_dpp_ops PASS, nothing else changes
MoltenVK 1.4.2 + LEONIDA_W64_EMULATE=1 LEONIDA_MESH_COMPUTE=1 168/189, cs_dpp_ops FAIL 169/189, cs_dpp_ops PASS
MoltenVK 1.4.2, LEONIDA_SUBGROUP_TEMPS=0 132/189: the failure comes back
MoltenVK main 1.4.3 133/189 133/189, same per test
KosmicKrisp, plain and emulated (flag off there) 132 / 168 132 / 168, same per test
KosmicKrisp and llvmpipe with the flag forced on same per test as without it
llvmpipe, plain and emulated 120 / 151 120 / 151, same per test

ps_ssharp fails on MoltenVK before and after (unrelated). The whole matrix was run again after rebasing on 16282101, with the same results per test.

  • check.py on MoltenVK 1.4.2: 125 → 126 of 167 (cs_dpp_ops passes; cs_fma_fused is vk_compute_test: run the 32-lane compute tests on MoltenVK, checked by a subgroup probe #2886's other 1.4.2 bug, unrelated).
  • crosslane_fuzz.py --wave 32 --modes native --no-maskdata, 60 programs per seed: seeds 1, 2 and 3 have 2, 0 and 3 mismatches on MoltenVK 1.4.2 without the flag and 0 with it, as on KosmicKrisp. With --dpp (masks as data included), MoltenVK with the flag matches KosmicKrisp's counts or has fewer.
  • Byte identity without the flag: the 454/454/454/458 files build.py writes in its four modes are identical to the base. With it, 74 of 214 GPU-test modules change, each only by one copy after each subgroup result, and 214/214 pass spirv-val.
  • tests/semantic/test_subgroup_temps.py (on the cs_dpp_ops fixture, added to regen_fixtures.py) checks that the flag is off by default, only adds the copies (one right after each subgroup result, in its block), and leaves the words the same. The new make_game.py and runner tests check the selection by driver id. Python suites pass: semantic (all), tests/test_make_game_*.py, test_run_gpu_tests.py, test_shader_checks.py, test_crosslane_fuzz.py, test_valu_fuzz.py.
  • Not covered: other control-dependent operations (derivatives, implicit-LOD samples) inside a short-circuit expression.

AI-assisted (Claude Code).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🤖 Generated with Claude Code

@bobcatchris

Copy link
Copy Markdown
Contributor

Apple M2 data point for the SHADER-529 fix. Tested head 223a453 on Apple M2 (Mac14,3), macOS 26.4 (25E246), MoltenVK 1.4.2 (Homebrew, direct), subgroup 4..32, llvm-mc 23.1.6, Python 3.13.18.

python -I scripts/run_gpu_tests.py --build runtime/build/linux: 193 shaders translated, 193 pass spirv-val; 133/189 passed, 55 skipped, 1 failed — the failure is the separately tracked ps_ssharp S# LOD-bias case (fixed by open #1845). cs_dpp_ops passes with out words 100 10 11 12 13 14 15 16.

This head contains #2886's 32-lane change, so the wave32 tests ran here. I also ran #2886's head alone on this same M2 earlier: it gave the same 133/189, 55 skipped, 1 failed and the same cs_dpp_ops words. In other words, this M2/MoltenVK 1.4.2 machine did not reproduce the lane-1 cs_dpp_ops error described in the PR body either before or after this change, and the change introduces no regression here. That is an Apple M2 data point only; it does not contradict the M3 Max measurement in the PR.

Build note: full build fails on AppleClang 17 at vk_pipeline_check.cpp:567 (BUILD-822, fixed by open PR #2927); GPU binaries built, so the suite above is valid. Head fetched unchanged into a separate worktree; no rebase/edit/push. Synthetic shaders and counts only; no game files.

AI-assisted.

Jolymmiles added a commit to Jolymmiles/Leonida that referenced this pull request Nov 22, 2026
…ice); check.py catches stale builds

Review of ItsNotRexed#3086: make_game.py ignored LEONIDA_SUBGROUP_TEMPS while run_gpu_tests.py honoured it, and build.py and
the fuzzers took only the variable. tools/translator_modes.py now decides for all of them (make_game.py,
run_gpu_tests.py, build.py, check.py, crosslane_fuzz.py, valu_fuzz.py): the flag on the entry point's own command
line, then LEONIDA_SUBGROUP_TEMPS=1/0, then tools/vk_subgroup_info.py's driver id 14 (MoltenVK). A module the flag
changed records subgroup_temps in index.json, and check.py lists a translator_modes failure when the build doesn't
match what this device takes.
@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Review fixes (rebased on #2886's 368511e8; this PR is now 34d4f600):

  • One order for the mode at every entry point. tools/translator_modes.py decides --subgroup-temps for make_game.py, run_gpu_tests.py, build.py, check.py, crosslane_fuzz.py and valu_fuzz.py, in this order: the flag on the entry point's own command line, then LEONIDA_SUBGROUP_TEMPS=1/0, then driver id 14 (MoltenVK) from tools/vk_subgroup_info.py. Before, make_game.py ignored the variable and build.py and the fuzzers took only the variable. Tests: tests/test_translator_modes.py, the make_game.py wiring with =0 on MoltenVK and =1 elsewhere, and the runner.
  • check.py catches stale builds. Every index.json entry translated with the flag records subgroup_temps: true. check.py lists a translator_modes failure when the build doesn't match what this device takes. On the Mac: build.py with nothing set now translates with the flag, check.py passes (126 of 167, cs_dpp_ops ok), and the same build checked with LEONIDA_SUBGROUP_TEMPS=0 reports all 214 modules as built with a mode this device doesn't take.
  • Docs. The docs/design.md row and the docs/testing.md row now describe both.

Re-run on an Apple M3 Max (16282101), all with the same result per test as before. Full matrix: MoltenVK 1.4.2 133/189 (cs_dpp_ops passes), plain and emulated; MoltenVK main 133/189; KosmicKrisp 132/168; llvmpipe 120/151. With LEONIDA_SUBGROUP_TEMPS=0 on MoltenVK 1.4.2, cs_dpp_ops fails again. With the flag off, build.py output is byte-identical to #2886's in all four modes. Python suites pass. AI-assisted.

…quirable (MoltenVK)

MoltenVK reports subgroups 4..32 and requiredSubgroupSizeStages 0, so VKC_SUBGROUP_SIZE=32 printed "not available"
and the 32-lane compute tests skipped. The translator emits SPIR-V 1.5, where varying subgroup sizes are not allowed,
so Vulkan fixes SubgroupSize at the device's subgroupSize (32 there). vk_compute_test now runs a probe shader
(cs_wave_probe.comp, embedded) with the test's local size and flags first, checks every invocation's lane, subgroup
number and ballot width, and runs the test if they match. If they don't, the test fails (exit 1) instead of being
skipped. Full subgroups are requested where local size X is a multiple of maxSubgroupSize. Devices whose default
isn't the requested size keep printing "not available".
…idth apart from lane order

Review of ItsNotRexed#2886: the probe needs subgroup operations in compute (supportedStages) with basic and ballot
(supportedOperations), or the size stays "not available". LocalSize is the one of the GLCompute entry point "main"
the pipeline is made from, not the last in the module. The width is checked from each subgroup's own lane numbers
and ballot (a wrong width fails the test); 32-lane subgroups that aren't in invocation order, which Vulkan doesn't
promise and the translator assumes, print "not available" and the runners skip.
…ross's short-circuit && / ?: (MoltenVK)

SPIRV-Cross forwards a value read once into the expression that reads it and writes OpLogicalAnd / OpLogicalOr /
OpSelect as the short-circuiting && / || / ?:, so a subgroup operation forwarded into their right side runs only in
some invocations. On MoltenVK 1.4.2 cs_dpp_ops read 100 instead of 10 in lane 1 (the DPP source check
in_row && ballot_bit(src)); SPIRV-Cross head still moves a ballot into &&.

With the flag every OpGroupNonUniform* result is followed by a dead OpCopyObject of it, a second read, so
SPIRV-Cross binds it to a temporary where it is computed. make_game.py and run_gpu_tests.py turn it on for
driver id 14 (MoltenVK); LEONIDA_SUBGROUP_TEMPS=1/0 overrides, and build.py and the fuzzers take the variable.
Without the flag the output is byte-identical.
…ice); check.py catches stale builds

Review of ItsNotRexed#3086: make_game.py ignored LEONIDA_SUBGROUP_TEMPS while run_gpu_tests.py honoured it, and build.py and
the fuzzers took only the variable. tools/translator_modes.py now decides for all of them (make_game.py,
run_gpu_tests.py, build.py, check.py, crosslane_fuzz.py, valu_fuzz.py): the flag on the entry point's own command
line, then LEONIDA_SUBGROUP_TEMPS=1/0, then tools/vk_subgroup_info.py's driver id 14 (MoltenVK). A module the flag
changed records subgroup_temps in index.json, and check.py lists a translator_modes failure when the build doesn't
match what this device takes.
@TreXito

TreXito commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 34d4f600 (base 16282101) on NVIDIA GeForce RTX 3060 Ti (Ampere, subgroup 32..32), driver 580.173.02 (Vulkan 1.4.312), Linux (Ubuntu 26.04 container on a TrueNAS 26.0 host): pass. This is a non-MoltenVK data point, with the new mode both off (the default here) and forced on.

Linux runtime built from the branch (CMake + Ninja, GCC, RelWithDebInfo); python3 -I scripts/run_gpu_tests.py, whole suite, fresh --work for each run:

result
base 16282101 142/189 passed, 46 skipped, 1 failed (ps_sdwa_f16_const)
this head, default (NVIDIA doesn't take --subgroup-temps) 142/189 passed, 46 skipped, 1 failed (ps_sdwa_f16_const)
this head, LEONIDA_SUBGROUP_TEMPS=1 142/189 passed, 46 skipped, 1 failed (ps_sdwa_f16_const); all 194 index.json entries marked subgroup_temps

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

@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Thanks @TreXito, a useful non-Mac data point: per test, the RTX 3060 Ti gives the same result with the mode off (the default there) and forced on, and build.py and check.py agree. Heads-up: main has moved, and I've rebased this PR and #2886 onto it. One addition came from main's --pc-tail-ubo: vk_compute_test's subgroup probe now reads its buffer address from the first push-constant words, so it fits the 128-byte layout. I'll push once the Mac matrix on the new base is done, and post the new head here. AI-assisted.

@crastinator

Copy link
Copy Markdown
Contributor

Tested 223a453 merged into main 16282101 (clean merge) on AMD Radeon RX 6700 XT (Navi 22, gfx1031, subgroup 32..64), RADV Mesa 26.3.1, CachyOS, Linux 7.3.5, GCC 16.2.1, llvm-mc 23.1.5: pass.

  • Whole run_gpu_tests.py: 175/189 native, 175/189 with LEONIDA_W64_EMULATE=1 (the skips are the D3D12-only fixtures and ps_w64x_readlane, as on main). ctest 37/37.
  • tests/semantic/test_subgroup_temps.py, tests/test_cs_wave_probe_spv.py, tests/test_make_game_argparse.py, tests/test_make_game_translator_flags.py, tests/test_run_gpu_tests.py, tests/test_shader_checks.py: 163 passed, 1 skipped, 296 subtests passed.

No game files. AI-assisted (Claude Code).

@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Thanks @crastinator. RADV on an RX 6700 XT, with 32..64-wide subgroups, adds another data point off the Mac: 175/189 both native and emulated, and ctest is clean. That run was on 223a453, before the review fixes (the one order for the mode, the check.py stale-build check, the probe's capability and lane-order checks). The rebased head with those fixes follows once the Mac matrix finishes. AI-assisted.

@JRamos1993

JRamos1993 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Tested 223a453 (on main 1628210) on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:

  • Full ctest: 130/130.
  • scripts/run_gpu_tests.py: 143/189 passed, 46 skipped, 0 failed, the same as main 1628210. All 194 test shaders translate and pass spirv-val.

AI-assisted (Claude Code).

@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Thanks @JRamos1993: Windows + MSVC on an RTX 5090, 143/189 with no failures, the same as main, and ctest 130/130. That covers the Windows build of the stack too. AI-assisted.

tomgamer22 added a commit to tomgamer22/Leonida that referenced this pull request Nov 22, 2026
Conflicts were ItsNotRexed#3086's --subgroup-temps next to main's --pc-tail-ubo (rdna2spirv.py, make_game.py, build.py,
valu_fuzz.py, the make_game tests, docs/design.md) and vk_compute_test.cpp (ItsNotRexed#3086's probe include and observed
subgroup size next to main's vk_pc_tail.h include and Float64 check, reusing ItsNotRexed#3086's earlier read of the module).
Both sides kept in each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tomgamer22 added a commit to tomgamer22/Leonida that referenced this pull request Nov 22, 2026
…p-hazard-check

ItsNotRexed#3086 now picks --subgroup-temps through tools/translator_modes.py. Conflicts with main's --pc-tail-ubo (make_game.py,
build.py, valu_fuzz.py, rdna2spirv.py, the make_game tests, docs) keep both modes; crosslane_fuzz.py,
run_gpu_tests.py and docs/testing.md take ItsNotRexed#3086's side. make_game.py drops runtime_gpu_spirv_cross(), which ItsNotRexed#3086
removed. test_valu_fuzz's pc-tail test sets LEONIDA_SUBGROUP_TEMPS=0 so translate() doesn't query the device
through its fake subprocess.run.

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

Copy link
Copy Markdown
Contributor Author

Rebased on main f847748c with #2886's new head; this PR's head is now 27a26d61. The conflicts were main's --pc-tail-ubo, and both flags are kept. One test change: main's test_pc_tail_ubo_forwarded_to_translator_and_vk_compute_test fakes every subprocess.run, so it now also stubs the device query, which valu_fuzz.py makes through tools/translator_modes.py.

Apple M3 Max, same commit, this PR against #2886: cs_dpp_ops FAIL→PASS on MoltenVK 1.4.2 (138/199 and 174/199 emulated), nothing else changes. MoltenVK main 138/199, KosmicKrisp 141/177 and llvmpipe 129/160 give the same result per test. With LEONIDA_SUBGROUP_TEMPS=0, build.py output is byte-identical to #2886's in all four modes (474/474/474/478 files). Python suites pass (530 tests plus semantic).

Thanks again to @TreXito (NVIDIA, Linux), @crastinator (RADV) and @JRamos1993 (NVIDIA, Windows) for the off-Mac runs. They ran the earlier heads; the changes since are the review fixes and this rebase. AI-assisted.

@maxhurst131

Copy link
Copy Markdown
Contributor

Independent check, AI-assisted, two GPUs, main branch baseline.

Environment: Windows 11 build 26300, Vulkan SDK 1.4.363.0, MSVC RelWithDebInfo, llvm-mc 21.1.8 (WSL Ubuntu).

PR #3086 (--subgroup-temps: keep subgroup operation results in temps to avoid SPIRV-Cross short-circuit && / ?: issues on MoltenVK).

Tested on NVIDIA RTX 5070 (driver 32.0.16.2124, subgroup 32..32):

  • python -I scripts/run_gpu_tests.py --llvm-mc "wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc" -> 143/189 passed, 46 skipped
  • Same count as main branch baseline (a4eb501): no regression introduced.

Tested on AMD Radeon Ryzen 7600X iGPU (driver 32.0.21045.29003, subgroup 32..64):

  • Same command -> 168/189 passed, 21 skipped
  • Same count as main branch baseline: no regression introduced.

The --subgroup-temps flag targets MoltenVK/Metal Vulkan short-circuit behavior; on native Windows Vulkan (both NVIDIA and AMD drivers tested) the flag does not change test outcomes, which is expected since the driver's compiler handles subgroup ops differently.

No game files used; counts only. Verified on both GPUs; no unexpected regressions.

- maxhurst131 (second agent), 2026-11-22

@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Thanks @maxhurst131: RTX 5070 and a Ryzen 7600X iGPU (AMD's Windows driver), each the same as main. The 189-test totals suggest it ran a head from before the rebase on f847748c; the current head is 27a26d61. AI-assisted.

@iurysf

iurysf commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 27a26d61 (on main f847748c) on RTX 4070 (NVIDIA 621.01, subgroup 32..32), Windows 11 (10.0.26300), MSVC 14.44, Windows SDK 10.0.26100, llvm-mc 23.1.6, SPIRV-Tools 2026.4, RelWithDebInfo: pass (no regression; the mode does not run by default on NVIDIA, so the MoltenVK fix itself is not exercised). Base and PR built and run the same way.

  • ctest -j 4: 140 run, 100% passed on main and on the PR. pytest of the 7 touched test files: 255 passed, 5 skipped (AMD clang missing). tests/semantic with llvm-mc: main 7322 OK, PR 7326 OK (+4 = test_subgroup_temps.py).
  • scripts/run_gpu_tests.py --require-pass: 153/199 passed, 46 skipped, 0 failed on main, and on the PR by default, with LEONIDA_SUBGROUP_TEMPS=1 and with =0, identical per test; with LEONIDA_W64_EMULATE=1: 184/199 on both (PR forced on). check.py: 139/174, 35 skipped, flag off and on, same as main.
  • build.py: with the flag off, all 235 .spv files are byte-identical to main; with LEONIDA_SUBGROUP_TEMPS=1, 74 differ and 224/224 still pass spirv-val.
  • Negative control: with only tools/rdna2spirv.py restored to main, test_subgroup_temps.py errors on all 4 tests (rdna2spirv.SUBGROUP_TEMPS missing); with the PR it passes.

Not tested: MoltenVK/macOS (so not the cs_dpp_ops fix), fuzzers on GPU, AMD/Intel, Linux. Tested with AI assistance (Claude); synthetic shaders only, no game data.

@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Thanks @iurysf: a run of the current head 27a26d61 on Windows on an RTX 4070, identical per test to main with the mode at its default, =1 and =0, and byte-identical output with it off. As you say, the cs_dpp_ops fix itself shows only on MoltenVK. My Mac matrix on the same head is in the comment above. AI-assisted.

@Impre-visible

Copy link
Copy Markdown

Tested 27a26d6 on NVIDIA GeForce GTX 1660 (Turing, TU116, subgroup 32..32), driver 620.73.04 (proprietary, Vulkan 1.4.357), Arch Linux (kernel 6.18): pass, no regression.

Native build of runtime/ from this head (Ninja, RelWithDebInfo, clang 23.1.5), llvm-mc 23.1.5, SPIRV-Tools v2026.4.

  • spirv-val on the modules the PR's semantic tests translate (test_subgroup_temps.py): distinct modules: 2, pass spirv-val: 2, rejected: 0
  • tests/semantic: 7326 OK
  • build.py: 224 shaders, 224 translated, 224 pass spirv-val; check.py: 139 of 174 pass, 35 skipped (wave64 without emulation, mesh fixtures)
  • run_gpu_tests.py: 204 shaders: 204 translated, 204 pass spirv-val; 153/199 passed, 46 skipped, 0 failed
  • LEONIDA_W64_EMULATE=1 run_gpu_tests.py: 184/199 passed, 15 skipped, 0 failed

AI-assisted run (Claude). Synthetic programs only, no game files involved.

@Jolymmiles

Copy link
Copy Markdown
Contributor Author

Thanks @Impre-visible: a Turing GTX 1660 on Arch with the proprietary driver gives 153/199 native and 184/199 emulated with no failures, and spirv-val and semantic are clean. AI-assisted.

@bobcatchris

Copy link
Copy Markdown
Contributor

Independent MoltenVK check (claimed on #4571). Hardware correction: this machine reports Apple M2 / Mac14,3, not M1 — macOS 26.4 (25E246), MoltenVK 1.4.2 (device Vulkan 1.4.357), subgroup range 4..32, llvm-mc 23.1.6, Python 3.13.18.

Head 27a26d61fd652c08594d3586e6aabafea1f3fee0, fetched read-only into its own worktree. Full build on AppleClang 17 fails at vk_pipeline_check.cpp:614 with the floating-point from_chars error (this head predates the merged fix now on main; unrelated to this PR); all GPU test binaries built, so the runs below are valid.

  • Device probe: driver_id: 14, and run_gpu_tests.subgroup_temps() is True here, so the flag auto-enables on this Mac.
  • python -I scripts/run_gpu_tests.py --build runtime/build/vulkan: auto 138/199 passed, 56 skipped, 5 failed; LEONIDA_SUBGROUP_TEMPS=0 gives 138/199 passed, 56 skipped, 5 failed — identical. The five failures are the known MoltenVK set at this commit (ps_ssharp, ps_vcmp_f16, ps_vcmp_f16_e64, ps_vcmpx_f16, ps_vcmpx_f16_e64).
  • Crucially, cs_dpp_ops PASSES with the flag and with it forced off (100 10 11 12 13 14 15 16, 0 mismatches). So this Apple M2 does not reproduce the reported short-circuit subgroup bug; I cannot claim the fix's benefit here, only that it causes no regression.
  • runtime/test/shaders/build.py + check.py <out> runtime/build/vulkan: with the flag 129/174 pass, 37 skipped; forced off 129/175 pass, 37 skipped; the same two failures (ps_ij_computed, ps_interp_f16_high) in both, from pipelines this driver cannot create.

Negative control on current upstream/main d0835dd9f9ec0a88faee510126436f2427854c2e, same commands: 127/210 passed, 76 skipped, 7 failed. Fixture sets differ (199 vs 210 tests), so this is not a strict "same failures as base" claim; over the 198 common tests, no test that passes on main fails on this PR head. The 18 status differences are all SKIP→PASS wave32 tests (cs_bpermute32, cs_dpp*, cs_w32_*, etc.) because this PR includes #2886's first commit; the remaining failures are unchanged.

No code changes, no push, no game files; synthetic shaders and counts only.

AI-assisted.

bobcatchris added a commit to bobcatchris/Leonida that referenced this pull request Nov 23, 2026
test_docs_cli_flags.py requires every backticked flag in docs to exist in
source, and --subgroup-temps only lands with ItsNotRexed#3086, which is still open.
Name it as an option until that PR merges.

AI-assisted.
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.

8 participants