Commit Graph

2 Commits

Author SHA1 Message Date
d87d9459e6 test_buffer_format_narrow_int: measured d16 stores (review: d16 SINT path untested)
buffer_store_format_d16_xyzw into every narrow UINT/SINT format, read back
from gfx1036 (wave32 and wave64 alike): a SINT half is sign-extended before
the clamp. Dropping the signed d16 source for sint now fails 10 rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:12:10 +01:00
7759b2abe4 rdna2spirv: 8- and 16-bit UINT/SINT typed buffer formats, measured on gfx1036
Formats 5, 6, 11, 12, 18, 19, 28, 61 and 70 (8_UINT, 8_SINT, 16_UINT,
16_SINT, 8_8_UINT, 8_8_SINT, 16_16_SINT, 8_8_8_8_SINT, 16_16_16_16_SINT)
were missing from Gen.FORMATS: a MUBUF load through one read 0 and a
store wrote nothing. UINT channels zero-extend and stores saturate; SINT
channels sign-extend and stores clamp the signed value. Every expected
word in the new semantic test was read back from a gfx1036 run of the
same instruction (tools/hw_oracle, wave32 and wave64).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:43:38 +01:00