Repository navigation
docs/design.md: the translator needs spirv-as only with its default assembler - #5592
evilclanker9000 wants to merge 1 commit into
Conversation
|
Tested 5e1f498 on Windows 11 with CPython 3.14.7 and Vulkan SDK 1.4.363.1: pass. I ran the translator on the synthetic ps_ops listing and an empty DXBC header. Each run used a fresh output folder. I used
Each successful run wrote an 8,828-byte module and passed Vulkan 1.2 validation. Each failed run left no .spv file. This confirms the prerequisites in the revised paragraph. Both tests in AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head 5e1f4980c5 (base 3faac557b; merges clean into current main 561b65a83). Docs only; git diff --check clean.
Verified on main: tools/rdna2spirv.py has --assembler {spirv-as,python} (line 17194) and uses tools/spirv_asm.py when python is chosen; spirv-val is still invoked unconditionally in assemble_spirv (line 17199). So "spirv-as only with its default assembler, spirv-val always" is accurate.
Verdict: merge.
docs/design.mdsays the translator "needsspirv-as/spirv-valon PATH" and "assembles it withspirv-as". That stopped being the whole truth when--assembler pythonlanded:tools/rdna2spirv.pycan assemble in-process throughtools/spirv_asm.py(assemble_spirv(),rdna2spirv.py:15760-15781; thespirv-assubprocess is only theelsebranch at 15789), so an externalspirv-asis needed only with the default assembler.spirv-valis still run on every module (15798), so it stays a PATH requirement.The paragraph now says both, so a reader without SPIRV-Tools'
spirv-ason PATH can translate with--assembler pythoninstead of believing the tool cannot run.Verified by execution (no game data; the input is the hand-written
tests/semantic/fixtures/disasm/ps_ops.swith the empty DXBC stub the semantic tests use, and a PATH that contains a copy ofspirv-val.exeand nothing else):and
<tmp>then holdsps_ops.spv(8,828 bytes). The documentation test still passes:Notes
docs/design.md; the same wording intools/rdna2spirv.py's usage docstring (line 16) is left alone because that file is under active translator PRs, anddocs/testing.md:40/README.md:112list SPIRV-Tools as a general prerequisite, which is still true (spirv-valis always needed).FileNotFoundErrortraceback rather than one setup line; that is PR rdna2spirv: a missing spirv-as/spirv-val is one setup error, not a traceback #3768's subject and is not touched here.AI-assisted.