Repository navigation
design.md: drop the stale "swizzle bits are not modelled" sentence from the bounds row - #5684
Pierre-Kookis wants to merge 2 commits into
Conversation
…om the bounds row The "Buffer bounds checking" row still said SWIZZLE_ENABLE/ADD_TID_ENABLE are not modelled (literal V# Unsupported, run-time V# translated unswizzled). The next row documents swizzled addressing as implemented (rdna2spirv.py reads both bits and builds the swizzled address; test_buffer_swizzle).
|
Reviewed 362d9ca (claims checked against main 561b65a, docs tests on Linux, Python 3.14.8): one problem
AI-assisted (Claude Code). |
The previous commit removed the whole **Swizzle** text of the bounds row. Keep its first sentence (the bits are modelled; see the Swizzled buffer addressing row) and drop only the short duplicate and the stale 'are not modelled ... (known gap)' sentence.
|
@cynbun you're right, thanks. My edit matched from the first You're also right about the line numbers in the description: on main the swizzle code is |
|
Re-checked |
|
Tested
|
Claimed in the coordination issue: #5581.
Problem
The "Buffer bounds checking" row of
docs/design.md(line 465 at561b65a8) still says SWIZZLE_ENABLE and ADD_TID_ENABLE "are not modelled: a literal V# with either set isUnsupported, a run-time V# with them is translated unswizzled, which is silently wrong (known gap)". The very next row, "Swizzled buffer addressing", documents them as implemented:tools/rdna2spirv.py:2963-2996reads both bits from literal and run-time V#s;:3040-3070builds the swizzled address;tests/semantic/test_buffer_swizzle.pychecks both descriptor forms and the load addresses (9 tests, OK here).Change
Doc only: that one sentence is removed from the bounds row; the swizzle row is unchanged.
Tested
python -I -m unittest discover -s tests/semantic -p test_buffer_swizzle.py: 9 OK.test_docs*.py: OK.AI-assisted (Claude Code + Codex). No game files.