diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 10:57:59 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 20:53:26 -0300 |
| commit | e58a60511862d176f3c998fc8b191be0854f2f1a (patch) | |
| tree | faccdcebad4323b87453ee5f16e2fefc0531595f /scripts/run_gpu_tests.py | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
GPU test cs_global_mem_ext: global/buffer atomics, 8/16-bit global stores, d16 loads
global_atomic_*, global_atomic_*_x2, buffer_atomic_*_x2 and the 8/16-bit
global stores and d16 loads were merged with semantic tests only.
cs_global_mem_ext.asm, laid out like cs_global_neg_offset (40 groups, one
thread, heap offsets as addresses), seeds a heap and stores eight words;
check.py (GLOBAL_OFFSET) and run_gpu_tests.py expect them.
tests/semantic/test_global_mem_ext_fixture.py runs the fixture on the
CPU against values computed in the test and checks both runners expect
the same words. test_shader_checks.py's fake harness answers every
GLOBAL_OFFSET entry.
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 94de20f26..13781cd6b 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -886,11 +886,14 @@ def run_suite(a, work: str) -> int: | |||
| 886 | problem = fmt_d16_xyz_test(a.build, spirv_dir, cs_env) | 886 | problem = fmt_d16_xyz_test(a.build, spirv_dir, cs_env) |
| 887 | results.append((name, not problem, problem or "80/80 dumped words exact")) | 887 | results.append((name, not problem, problem or "80/80 dumped words exact")) |
| 888 | results.append((name, not problem, problem or "128/128 dumped words exact")) | 888 | results.append((name, not problem, problem or "128/128 dumped words exact")) |
| 889 | elif name == "cs_global_neg_offset": | 889 | elif name in ("cs_global_neg_offset", "cs_global_mem_ext"): |
| 890 | # Negative global_load/global_store offsets (cs_global_neg_offset.asm): 40 groups give a 0x2800-byte | 890 | # Negative global_load/global_store offsets (cs_global_neg_offset.asm): 40 groups give a 0x2800-byte |
| 891 | # heap holding both the right addresses and the 4096-lower ones. One thread, no wave64 requirement. | 891 | # heap holding both the right addresses and the 4096-lower ones. One thread, no wave64 requirement. |
| 892 | # cs_global_mem_ext.asm: global/buffer atomics, 8/16-bit global stores and d16 loads in the same heap. | ||
| 892 | rc, msg = run_cmd([vk_compute, spv, "40", "dump"], env=cs_env) | 893 | rc, msg = run_cmd([vk_compute, spv, "40", "dump"], env=cs_env) |
| 893 | want = [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4, 0x9E, 0xFFFF8BAD, 0x57023FFC, 0xEEEEEEEE] | 894 | want = {"cs_global_neg_offset": [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4, 0x9E, 0xFFFF8BAD, |
| 895 | 0x57023FFC, 0xEEEEEEEE], | ||
| 896 | "cs_global_mem_ext": [0x5, 0xC, 0x977, 0xFFF00000, 0xEDCB5678, 0xEF332211, 0x887766BE, 0xFF801234]}[name] | ||
| 894 | ok, detail = judge_cs_dump(rc, msg, want, wave64=False, partial=False, emulated=False, hexwords=True) | 897 | ok, detail = judge_cs_dump(rc, msg, want, wave64=False, partial=False, emulated=False, hexwords=True) |
| 895 | results.append((name, ok, detail)) | 898 | results.append((name, ok, detail)) |
| 896 | elif name == "cs_heap_init": | 899 | elif name == "cs_heap_init": |