Skip to content

feat(probes): add 4 clean-room GLSL 4.60 paired-twin subgroup shuffle/ballot probes (local_size_x=128) (#7) - #14

Merged
saariuslystoned merged 4 commits into
mainfrom
feat/7-subgroup-shuffle-ballot-probes
Nov 30, 2026
Merged

saariuslystoned merged 4 commits into
mainfrom
feat/7-subgroup-shuffle-ballot-probes

Conversation

@saariuslystoned

Copy link
Copy Markdown
Contributor

Closes #7.

Summary

  • 4 minimal clean-room GLSL 4.60 paired-twin subgroup compute probes under probes/spirv/ (local_size_x = 128, zero .spv binaries committed) isolating subgroupShuffle, subgroupShuffleXor, subgroupBallot, and subgroupAdd.
  • Manifest, generator & docs parity: updated tools/freeusc/gen_spirv_probes.py, probes/CAPTURE-MANIFEST.md, probes/spirv/README.md, and .github/workflows/ci.yml from 33 → 37 probes.
  • Verification tests: updated tests/test_freepvr_offline.py with 37-probe parity check, 128-wide subgroup probe structure test, and SPIR-V compile + spirv-val + spirv-dis opcode assertions (OpGroupNonUniformShuffle, OpGroupNonUniformShuffleXor, OpGroupNonUniformBallot, OpGroupNonUniformIAdd).

Verification

  • python3 tools/freeusc/gen_spirv_probes.py --self-test: PASS (37/37 probes validated).
  • python3 -m unittest discover -s tests -v: 10/10 OK.
  • python3 -m unittest discover -s freepvr-twin/tests -v: 25/25 OK.
  • ./scripts/clean-room-audit.sh: PASS (0 violations across 68 files).
  • Zero .spv binaries committed.

…r contract, 37-probe README counts

Adversarial hardening pass on the 128-wide subgroup shuffle/ballot
paired-twin corpus (PR #14). All 4 new GLSL 4.60 probes compile
clean under glslangValidator 16.6.0 and pass spirv-val for both
vulkan1.2 and vulkan1.3; SPIR-V shows correct GroupNonUniform
capabilities, Workgroup scope, uvec4 (128-bit) ballot, std430
offsets 0/1024/2048/3072, and unconditional subgroup ops in
uniform control flow. Sweeper never dispatches, so the [256] SSBO
bounds are moot for capture (1-2 workgroups of 128 fit).

Fixes found by fuzzing + doc sweep:
- gen_spirv_probes --self-test now fails closed when .comp files
  are missing (was a vacuous PASS with an empty --out-dir).
- volcanic_bitdiff.bit_ranges_from_mask rejects width outside
  [0, 4096] (was an O(width) hang on huge widths).
- rgx_sh_parser maps OSError to ValueError (single error contract
  for bad file inputs; CLI exits 1 with a clean message).
- README probe counts 33 -> 37 (6 stale spots PR #14 missed).

Proof: 37/37 glslangValidator+spirv-val PASS (vulkan1.2 + 1.3),
manifest sha256/sizes bit-identical to fresh regen, 508 fuzz
ok / 63 clean rejections / 0 crashes, clean-room audit PASS 0
violations on 68 files, unittest 10 + 25 PASS.
@saariuslystoned

Copy link
Copy Markdown
Contributor Author

Adversarial Hardening & Public-Roads Audit Receipt (703f6d00)

  • Prior PR head: 398799d7 → Hardened head: 703f6d00
  • 4 bugs fixed: gen_spirv_probes.py --self-test vacuous PASS (→ fail-closed), volcanic_bitdiff.py bit_ranges_from_mask huge-width DoS hang (→ bounded [0,4096]), rgx_sh_parser.py OSError leak (→ ValueError), stale 33-probe counts in README.md (→ 37).
  • Verification: 37/37 probes validated (glslangValidator + spirv-val), 508 fuzz ok / 63 clean rejects / 0 crashes, 10+25 unit tests OK, ./scripts/clean-room-audit.sh (68 files) PASS.

@saariuslystoned
saariuslystoned merged commit 2230071 into main Nov 30, 2026
3 checks passed
@saariuslystoned
saariuslystoned deleted the feat/7-subgroup-shuffle-ballot-probes branch November 30, 2026 18:27
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.

[Screener] Add 4 clean-room GLSL 4.60 paired-twin subgroup shuffle/ballot probes (local_size_x = 128)

1 participant