Repository navigation
Conversation
|
AI-assisted CPU comparison of the two open heads, #3387 (
|
|
Tested 4e15213 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass.
No new GPU fixture in this PR; full GPU suite ran against the existing main runtime build. AI-assisted (OpenCode). |
|
AI-assisted independent CPU review at 4e15213 found no correctness blocker. Thirty synthetic cases across every nonempty mask in D16 and full-width modes matched all three typed texels and a16 coordinates (3,9); all passed Vulkan 1.2 spirv-val. Six tests from this PR and four from #3095 pass on this head. Parent rejects all five D16 tests and passes the full-width control. Coordinate with #3095 before merging: both implement the same path and test filename. Its broader end-to-end tests can be retained alongside this PR's design-contract entry. The RTX 5070 evidence is scoped to #3095, not this head. Signed-zero differences also reproduce with direct SPIR-V and do not isolate a D16 defect. Author ownership remains unchanged. |
|
Tested
AI-assisted (Claude Code). Synthetic test shaders only, no game files. |
|
Closing: |
Claims: #3232 (comment)
What broke.
image_store v10, v5, s[24:31] dmask:0x1 dim:SQ_RSRC_IMG_2D unorm a16 d16was refused ("image_store 2D a16 d16"). Seen in 1 shader of my own 1.0.2.1 copy (counts only), 1 instruction.Fix. With d16 the data is 16 bits per component, two per VGPR from the low half, enabled dmask components in order (MIMG D16). The float view reads each as f16 widened exactly to f32; the uint view zero-extends and the sint view sign-extends the 16 bits. New
Gen.d16_store_components; the non-d16 path is unchanged. Row added to docs/design.md; not measured on hardware (noted in the row): the sign extension only matters for a 32-bit integer format.Tested.
tests/semantic/test_image_store_d16.py: synthetic stores (single component with a16, two components in one VGPR, four over two VGPRs, sparse dmask, three components, and non-d16 unchanged). It evaluates the emitted data path (the mini interpreter has no image support) against a Python reference for the float, uint and sint texels. Linux (WSL2), Python 3.12.16: fulltests/semantic7328 tests OK (4 skipped, 1 expected failure);test_isa_coverage.py,test_docs_design_rows.py,test_rdna2spirv_cli.pyOK. The real program translates and passes spirv-val (1 of 1).Negative control. With
tools/rdna2spirv.pyfrom upstream/main, 5 of the 6 new tests error (Unsupported image_store d16); the sixth (non-d16) passes.AI-assisted.