Repository navigation
docs/design.md: the typed-image-store row names the 1D and cube dims, and a test keeps it in step with STORE_DIMS - #7461
Open
evilclanker9000 wants to merge 2 commits into
Conversation
The row listed 2D, 2D array and 3D, but STORE_DIMS also serves 1D (index 3, bindings 17-19) and ItsNotRexed#6805 maps SQ_RSRC_IMG_CUBE onto the 2D-array views (dim 1, bindings 11-13, (x, y, face)). Name both, with how each is confirmed: tests/semantic/test_image_cube_store_glc.py and the 1D dmask:0x4 d16 case in tests/semantic/test_image_store_d16.py, neither GPU-verified.
Reads the dimension names from Gen.STORE_DIMS and the SQ_RSRC_IMG_* aliases in Gen.image_store, so the next dimension the store path learns cannot land without a row that names it (it fails on the previous commit with 1D and CUBE missing). Standard library only; a negative control proves a short row is reported.
|
Tested d983db9 on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check (no checks ran yet, zero comments before).
No game files, no GPU. AI-assisted. |
This was referenced Nov 23, 2026
|
Independent check (Linux, Python 3.12.3, Node 24.13, CPU only, no game files): head
Its own test passes. Note: it does not turn AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item: EGEN-DESIGN-IMAGE-STORE-DIMS (claimed in #7333: #7333 (comment))
What and why
docs/design.md's "Typed image stores" row listed image_store as "(2D, 2D array, 3D)" and its view indices as "dim 0 = 2D, 1 = 2D array, 2 = 3D", but the store path serves two more dimensions today:
untime/src/vulkan_bindless.h:59 binds a cube storage view as a 6-layer 2D array.
AGENTS.md makes the contract table the record of every translator rule, with how it was confirmed, so a row that lists fewer dimensions than the code reads as a refusal that no longer exists: a reader of the row would conclude that a cube image_store is still Unsupported. The row now names both dimensions, gives their view indices and bindings, and says how each is confirmed (CPU only).
The second commit adds ests/test_design_store_dims_row.py, which derives the dimension names from Gen.STORE_DIMS and from the SQ_RSRC_IMG_* aliases in Gen.image_store's own source. The next dimension the store path learns therefore cannot land without a row that names it. A negative control proves that a short row is reported.
Test (before/after)
`
python -I tests/test_design_store_dims_row.py # at upstream/main (d90444f, before any commit)
FAIL: test_the_row_names_every_store_dimension
AssertionError: Lists differ: ['1D', 'CUBE'] != [] : docs/design.md's 'Typed image stores' row does not name
these dimensions that image_store serves (add them, with how each was confirmed)
python -I tests/test_design_store_dims_row.py # at the PR head
Ran 2 tests in 0.003s
OK
`
The claims the row makes are the ones the code and the existing CPU tests show:
`
python -m unittest discover -s tests/semantic -p test_image_cube_store_glc.py
Ran 9 tests in 1.026s
OK (skipped=2) # spirv-val and llvm-mc are not on PATH here
python -m unittest discover -s tests/semantic -p test_image_store_d16.py -k test_sparse_dmasks_pack_enabled_components_consecutively
Ran 1 test in 0.119s
OK # the 1D dmask:0x4 d16 store and its (5,) coordinate
python -I tests/test_docs_design_rows.py # OK, 5 tests (row shape, one row per topic)
python -I tests/test_design_contract_rows.py # OK, 4 tests (no repeated row)
python -I tests/test_ci_registration.py # OK, 14 tests (the new file is selected by CI)
`
No GPU is needed, and none was used: the row says "Not GPU-verified" because no GPU fixture on main stores to a cube or 1D image (only ps_cube_sample.asm samples one).
Notes
AI-assisted.