Skip to content

Surface LDS harness failures after subgroup warnings - #2926

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
Vonsek:codex/lds-fuzz-failed-unpinned
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
Vonsek:codex/lds-fuzz-failed-unpinned

Conversation

@Vonsek

@Vonsek Vonsek commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: LDS failures after an unpinned subgroup warning

What and why

vk_compute_test can print that the requested subgroup size is unavailable and continue to submission. The LDS fuzzer counted any run carrying that warning as skipped, even if the harness failed afterward. Only skip for subgroup size after a successful harness exit.

Tested

  • Built two synthetic wave32 LDS programs through the normal translator with installed Windows LLVM and SPIRV-Tools. Both validated for Vulkan 1.2. Supplied one matching dump and one simulated harness process that printed the unpinned warning, reported vkQueueSubmit failure, and exited 1. The old batch returned 0 with one skip and zero harness errors. The patched batch returned 2 with one harness error and zero skips.
  • The new regression failed before the fix. All 31 tests/test_lds_fuzz.py tests and all six tests/test_lds_fuzz_cli.py tests passed afterward, including the successful unpinned-run skip control. A local merge with valu_fuzz, lds_fuzz: support --pc-tail-ubo / LEONIDA_PC_TAIL_UBO=1 #2608 was clean. All checks ran on CPU.

Checklist

  • No game data, keys or decryption.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable.)

AI-assisted (Codex).

The compute harness can continue from a subgroup-size fallback and then fail during submission. The warning should only skip a successful run.
@tupacfan04

Copy link
Copy Markdown
Contributor

Code read of 12882f40. Looks right. The "subgroup size unavailable" line can come with a failing run, and before this the skip check ran first, so a real harness failure was counted as a skip. Only treating it as a skip when rc == 0 lets the failure through to the normal error path.

AI-assisted review (Claude Code).

@Marukooh

Copy link
Copy Markdown
Contributor

Tested 12882f40 on CachyOS Linux, RTX 5070 Ti, NVIDIA 620.73.04. All 37 LDS fuzzer and CLI unit tests passed, including the warning-plus-error regression. I also ran the real Vulkan harness with lds_fuzz.py --wave 32 --threads 32 --programs 24 --seed 2026. All 24 synthetic programs matched the model with zero skips or harness errors. The unavailable-subgroup failure path was covered by the simulated unit test. AI-assisted.

@KiryaAfimin

Copy link
Copy Markdown

Tested 12882f40 on Windows 11 with an RTX 4070 (driver 621.01). Both wave32 programs matched in a normal run. For the second dispatch only, I requested a 64-lane subgroup to trigger the warning on this 32-lane GPU.

With a writable dump path, vk_compute_test completed and both revisions counted the second program as skipped. Pointing VKC_DUMP at a nonexistent directory made the same dispatch finish on the GPU and the harness exit 1 on the write.

The parent (77444fa0) still reported one skip and exited 0. The PR reported one harness error, zero skips, and exited 2 with the VKC_DUMP: could not write diagnostic.

AI-assisted

@ItsNotRexed
ItsNotRexed merged commit b31d87b into ItsNotRexed:main Nov 22, 2026
2 of 4 checks passed
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.

5 participants