Skip to content

docs/design.md: drop superseded copies in the Workgroup barriers, Typed image loads and Geometry shaders rows - #4913

Open
LouisRiverstone wants to merge 2 commits into
ItsNotRexed:mainfrom
LouisRiverstone:docs-three-more
Open

LouisRiverstone wants to merge 2 commits into
ItsNotRexed:mainfrom
LouisRiverstone:docs-three-more

Conversation

@LouisRiverstone

Copy link
Copy Markdown
Contributor

Three more superseded copies in docs/design.md. Each sits next to the sentence that replaced it, and that sentence or the code settles which one is current. One sentence goes per row, and nothing is reworded.

row dropped kept, and why
Workgroup barriers "… a per-round count of the invocations not done (three Workgroup words, by round mod 3) ends the loop." The same sentence with "or a borrowed LDS word with a large LDS: 'Barrier-round count in LDS (SHADER-579)'": the newer rule, with its own row.
Typed image loads d16 loads take "the low 16 bits of each value from the uint/sint aliases (truncated)" "… saturated to the 16-bit range of its signedness (saturate_int16)": the image-load d16 path in tools/rdna2spirv.py calls saturate_int16 (if d16 and numeric_class: …).
Geometry shaders "All 195 are $GS_VoxelizeGeneric permutations: legacy (merged ES/GS) wave32 programs …" The wave64 sentence, which gives the evidence and says "an earlier version of this row said wave32, TEST-251".

Found while sweeping for rows with two versions of one sentence; these three needed a source to pick from, so they weren't in #4910.

Checked: each row keeps its column count, and the tests/test_docs_*.py checks pass.

Docs only, no game files. Same claim on #4816 as #4910.

AI-assisted (Claude Code): I reviewed and ran the checks.

…ed image loads and Geometry shaders rows

Workgroup barriers: the round-count sentence without the SHADER-579 borrowed
LDS word, next to the one with it. Typed image loads: 'the low 16 bits of each
value from the uint/sint aliases (truncated)' next to 'saturated to the 16-bit
range of its signedness (saturate_int16)'; the code saturates (the image load
d16 path calls saturate_int16). Geometry shaders: 'legacy ... wave32 programs'
next to the sentence that says they are wave64 and that 'an earlier version
of this row said wave32, TEST-251'. No behaviour change.
@SweatierKey

Copy link
Copy Markdown
Contributor

Independent verification on Linux (Python 3.13.5, head 690e8f57, base main 3faac557):

  • Checked the character-level diff on all 3 rows (Geometry shaders line 306, Workgroup barriers line 366, Typed image loads line 381): each deletion removes an exact superseded copy sitting next to its replacement, with no rewording of surrounding text.

  • All 10 tests/test_docs*.py suites pass (30/30 tests OK) and git diff --check is clean.

  • Small note (same Geometry shaders row, line 306): near the end of that row there is one more superseded copy from before SHADER-617 (even missing its opening parenthesis):

    … for an ordinary draw afterwards (SHADER-159). Metal, MoltenVK), \tools/spirv_gs_to_compute.py` lowers the translated module to a compute capture pass, one invocation per input primitive: inputs come from a buffer, each `OpEmitVertex` writes the outputs to a record buffer, and a meta buffer holds each primitive's vertex count and strip ends, for an ordinary draw afterwards (SHADER-159).`

    Worth dropping either here or in a follow-up — everything currently in the PR looks good to merge.

…tence too

@SweatierKey on ItsNotRexed#4913: the Geometry shaders row also kept the older copy of the
'tools/spirv_gs_to_compute.py lowers the translated module to a compute
capture pass' sentence, without the SHADER-617 OpEmitVertex guard and missing
its opening 'Without a geometry stage (Apple GPUs:'. The SHADER-617 sentence
stays.
@LouisRiverstone

Copy link
Copy Markdown
Contributor Author

Thanks @SweatierKey. That's one more leftover: the pre-SHADER-617 copy of the GS-to-compute sentence, without its opening "Without a geometry stage (Apple GPUs:" and without the OpEmitVertex guard. Dropped in 3951d4cc. The SHADER-617 sentence before it stays, the row keeps its column count, and the docs tests pass.

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.

2 participants