diff options
| author | itsRevela <rexmarek@gmail.com> | 2026-11-22 12:02:47 -0600 |
|---|---|---|
| committer | itsRevela <rexmarek@gmail.com> | 2026-11-22 12:02:47 -0600 |
| commit | 90c4ea6701cdd9636773b0e9a785c16220a836ea (patch) | |
| tree | d4cf285dd3161df32be1c0bfb404eebaa5610dee /scripts/run_gpu_tests.py | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
test: GPU fixtures for sub-dword MUBUF loads and GFX10_FORMAT_8_UINT (TEST-510)
The docs/design.md "Sub-dword MUBUF loads and GFX10_FORMAT_8_UINT" row was
CPU-checked only. Two single-thread compute fixtures in run_gpu_tests.py's
dump list now run the translated loads through Vulkan:
cs_buf_load_sub: buffer_load_ubyte/sbyte/ushort/sshort zero- and
sign-extended, the dword-crossing ushort at offset 3, and the RAW end check
by element size (a ubyte at 8 and a ushort at 7 of 8 bytes read 0; a
start-only check would read 0xeefe from the 0xee filler).
cs_buf_fmt8: tbuffer_load_format_x format:[BUF_FMT_8_UINT] at offsets 0..3,
one byte past the end, an INVALID V# format (0), and buffer_load_format_xyzw
with V# format 8_UINT and DST_SEL (X, 0, 1, 1), whose w is integer 1.
Both pass on an RTX 3070 Ti (driver 610.88); the expected words follow the
CPU test's byte table and rules. The row now says so; AMD hardware is still
unmeasured.
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 698ec36d0..ffd65a0ab 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -806,7 +806,7 @@ def run_suite(a, work: str) -> int: | |||
| 806 | results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the " | 806 | results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the " |
| 807 | "clamped and the calculated LOD within 1/16")) | 807 | "clamped and the calculated LOD within 1/16")) |
| 808 | elif name in ("cs_bounds", "cs_smem_bounds", "cs_smem_stride_align", "cs_smem_sload_neg", "cs_buf_tail", "cs_oob_select", "cs_oob_tail", | 808 | elif name in ("cs_bounds", "cs_smem_bounds", "cs_smem_stride_align", "cs_smem_sload_neg", "cs_buf_tail", "cs_oob_select", "cs_oob_tail", |
| 809 | "cs_buf_swizzle", "cs_cmpx_class_f32", "cs_cvt_pk_u8"): | 809 | "cs_buf_swizzle", "cs_cmpx_class_f32", "cs_cvt_pk_u8", "cs_buf_load_sub", "cs_buf_fmt8"): |
| 810 | # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds | 810 | # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds |
| 811 | # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement. | 811 | # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement. |
| 812 | # cs_cmpx_class_f32 and cs_cvt_pk_u8 are per-lane and need no particular subgroup width either. | 812 | # cs_cmpx_class_f32 and cs_cvt_pk_u8 are per-lane and need no particular subgroup width either. |
| @@ -828,6 +828,9 @@ def run_suite(a, work: str) -> int: | |||
| 828 | 0xBEEF0001], | 828 | 0xBEEF0001], |
| 829 | "cs_cmpx_class_f32": CMPX_CLASS_WORDS, | 829 | "cs_cmpx_class_f32": CMPX_CLASS_WORDS, |
| 830 | "cs_cvt_pk_u8": CVT_PK_U8_WORDS, | 830 | "cs_cvt_pk_u8": CVT_PK_U8_WORDS, |
| 831 | # TEST-510: sub-dword MUBUF loads (RAW end check by element size) and GFX10_FORMAT_8_UINT | ||
| 832 | "cs_buf_load_sub": [0x80, 0xFFFFFF80, 0x1FF, 0xFFFF807F, 0xAB01, 0xCD, 0, 0], | ||
| 833 | "cs_buf_fmt8": [0x7F, 0x80, 0xFF, 0x01, 0, 0, 0xFF, 1], | ||
| 831 | }[name] | 834 | }[name] |
| 832 | words = dump_words(msg) | 835 | words = dump_words(msg) |
| 833 | vals = words[:len(want)] if words else [] | 836 | vals = words[:len(want)] if words else [] |