Repository navigation
run_gpu_tests, rdna2spirv: support --assembler python, --no-validate, and --disasm-dir - #6676
Conversation
… and --disasm-dir
|
Tested
AI-assisted (Claude Code). |
|
The new assembler selection reaches the main translation and the three inline helper shaders. Two companion builders still bypass it:
Could both builders accept the runner's resolved assembler and validation settings, while preserving their standalone defaults? A regression test could make any external SPIRV-Tools invocation fail and exercise an empty mesh-helper list and a pixel shader that needs the geometry helper. AI-assisted code review of |
|
Verified on Linux (CPU-only): merges with current main 1cc6e3c; tests/test_run_gpu_tests_python_assembler.py passes 5/5 under python -I and pytest, and fails 5/5 when copied onto clean main, so the tests genuinely cover the new flags. Both CLIs expose --assembler/--no-validate/--disasm-dir under -I. Heads-up: tools/rdna2spirv.py overlaps #2956/#3544 and docs/testing.md overlaps #4212 — whoever lands second rebakes. Also: the branch reports no CI checks. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Independent Windows validation of Environment: Windows 11, MSVC 19.44.35228, Intel Iris Xe Graphics (Vulkan subgroup 8..32); synthetic fixtures only. No
This covers the synthetic compute subset; I did not claim graphics-fixture coverage. AI-assisted. |
|
Tested I ran the checked-in disassembly fixtures with |
shayderrr
left a comment
There was a problem hiding this comment.
Summary
scripts/run_gpu_tests.py gains --assembler {auto,spirv-as,python} (auto uses spirv-as if on PATH, else the pure-Python tools/spirv_asm.py), --no-validate, and --disasm-dir to reuse pre-disassembled fixtures instead of llvm-mc; matching --assembler/--no-validate flags and assemble_spirv() changes land in tools/rdna2spirv.py. Docs and a new test file cover resolution, helper-shader assembly, CLI plumbing and skipped spirv-val.
Why merge
Lets GPU tests run on machines with neither SPIRV-Tools nor llvm-mc, using the same fixture listings as the semantic suite.
Verdict: Approve
Summary
Why mergeLets GPU tests run on machines with neither SPIRV-Tools nor llvm-mc, using the same fixture listings as the semantic suite. Verdict: Approve |
Item ID: TEST-GPU-PYTHON-ASSEMBLER (claimed in #6414)
Summary
dna2spirv.py and the helper shaders (�s_tri, s_passthru, s_loc1).
untime-windows artifact when neither llvm-mc nor SPIRV-Tools is installed.
esolve_assembler, spirv_as(..., assembler=python), �ssemble_spirv(..., validate=False),
dna2spirv.py --assembler python --no-validate, and --disasm-dir error handling.
AI-assisted. Synthetic shaders only, no game files.
Tested
Hardware / Environment: Windows 11, Python 3.14, NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell, driver 617.14), CI
untime-windows artifact from run 45044832456 (no local LLVM or Vulkan SDK / SPIRV-Tools).
python -I scripts/run_gpu_tests.py --build --disasm-dir tests/semantic/fixtures/disasm --assembler python
LEONIDA_W64_EMULATE=1 python -I scripts/run_gpu_tests.py --build --disasm-dir tests/semantic/fixtures/disasm --assembler python