Repository navigation
Conversation
…TBUF-D16) cs_w32_tbuf_d16_store stores d16_x and d16_xyz into 16_FLOAT, 8_UNORM, 16_16_16_16_FLOAT, 8_8_8_8_UNORM and 16_16_FLOAT regions and reads the dwords back; the words are derived by hand in the header. Also a semantic fixture with a plain-Python reference of the bytes each store writes. AI-assisted.
|
Independent RTX 5070 / 621.24 Vulkan run of I also swept all 65,536 binary16 bit patterns through dynamic One limit on describing |
|
Ran
Negative control on this machine: with Restored (
Limit of this GPU: the format rules the words are derived from were measured on gfx1035, and the 4060 can only confirm the translator's implementation of those rules on Ada, not the RDNA2 hardware behaviour. On this fixture that limit is small: it has no NaN input, so the driver NaN canonicalisation reported in the comment above cannot change any of its words. Verdict: LGTM. AI-assisted review. |
|
Tested Worth noting for this device class: the fixture is named |
|
Tested |
|
Tested
Tools: llvm-mc 21.1.8 with AMDGPU target, SPIRV-Tools 2026.1, GCC 13.3.0, Python 3.12.3. No code was edited or pushed; only synthetic fixtures were used. AI-assisted. |
runtime/test/shaders/check.py scripts/run_gpu_tests.py AI-assisted.
runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
|
Tested The rebased head passed the targeted native wave32 check on Linux. The synthetic The two narrow writes preserved the surrounding fill bytes. The three-component write to the two-component float format also left the following word at its original fill value. This run covered the single typed-store fixture. AI-assisted (Codex). AI-assisted verification. |
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
|
Tested
|
|
SHADER-495 — aggregate inventory on my own 1.0.2.1 disassembly corpus. Across all 26,503 An independent case-insensitive text search agreed. As a positive control, the broader |
|
Tested
AI-assisted (Claude Code). |
|
Tested 2d0504f on Intel UHD 630 (CFL GT2, subgroup 8..32), Mesa 25.2.8 ANV, Ubuntu 24.04, LEONIDA_VK_DEVICE=Intel: pass.
AI-assisted. |
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-GPU-TBUF-D16, #2516 (comment)
What and why
tbuffer_store_format_d16_xandtbuffer_store_format_d16_xyzare translated but no test runs them (the d16_xy and d16_xyzw stores are incs_tbuffer_store; the tbuffer d16 loads are in #2039 and earlier tests). This addscs_w32_tbuf_d16_store, a one-lane wave32 compute dump:d16_xinto16_FLOAT(the f16 as it is) and8_UNORM(1.0 gives 0xff), with junk in the high half of the data register that must not be read.d16_xyzinto16_16_16_16_FLOAT(w not given, stored as 0),8_8_8_8_UNORM(w = 0) and16_16_FLOAT(z dropped, the next dword untouched).d16_xinto16_16_FLOAT(y is in the format and not given, so 0).The expected words and their derivation are in the .asm header. They follow the rules
cs_tbuffer_storedocuments (the instruction's format replaces the V#'s; a store writes the format's whole element, components the format has but the instruction omits are 0, components it lacks are dropped), which were measured on gfx1035 there; these two forms were derived from them by hand, not measured separately. Every word came out as derived on both GPUs, so there is no translator change.The shader is also a semantic fixture (
regen_fixtures.py), checked intests/semantic/test_value_semantics.py(TbufferD16StoreWords) against the hand constants and a plain-Python reference of the bytes each store writes.Tested
NVIDIA GeForce RTX 5080 (subgroup 32..32)):run_gpu_tests.py --filter cs_w32_tbuf_d16, pass.AMD Radeon(TM) Graphics (subgroup 32..64)): pass.16 * (i % 2)->0in the typed store) fails the GPU test (out[2], out[4] and out[5] change) and the semantic test; reverted.python -m unittest discover -s tests/semantic,python tests/semantic/regen_fixtures.py --checkandpython -I tests/test_shader_checks.pypass.Checklist
docs/design.md, with how it was confirmed. (No new rule; tests only.)AI-assisted.