upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 21:49:53 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 21:49:53 -0500
commit8d686309b0617e1a561c0404b8b79e6176385664 (patch)
tree439d4a796034028a0951e6d469dbd695eacf69bb /scripts/run_gpu_tests.py
parent6c8a89dea7e0521714834383a847e36dcf437036 (diff)
parent7f3d0095a2d51892bc7048f24505c37168f25c34 (diff)
Merge main into integration/boot-combined (RT-BOOT-COMBINED)
Conflict in runtime/shims/d3d12_xs_device.cpp, proxy_copy_descriptors_simple: keep this branch's copy_null_rtv_marks call and main's fsdraw::enabled() gate for the descriptor-copy diagnostic. tools/rdna2spirv.py merged without a textual conflict, but #1662 on main calls restore_dot4_inline_sel in the exact re-anchoring path, which this branch had deleted. The merge puts main's function back so that call resolves; the next commits reconcile it with the dot4 op_sel rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py28
1 files changed, 19 insertions, 9 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index a9d18b6ea..f87290ec6 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1101,6 +1101,7 @@ def run_suite(a, work: str) -> int:
1101 elif name == "cs_tbuffer_store": 1101 elif name == "cs_tbuffer_store":
1102 # tbuffer_store_format_*: the instruction's format, words measured natively on a Radeon 680M (the .asm header) 1102 # tbuffer_store_format_*: the instruction's format, words measured natively on a Radeon 680M (the .asm header)
1103 problem = tbuffer_store_test(a.build, spirv_dir, cs_env) 1103 problem = tbuffer_store_test(a.build, spirv_dir, cs_env)
1104 results.append((name, not problem, problem or "128/128 dumped words exact"))
1104 elif name == "cs_fmt_d16_xyz": 1105 elif name == "cs_fmt_d16_xyz":
1105 # d16_xyz / d16_xy typed-buffer loads and d16_xyz stores (cs_fmt_d16_xyz.asm header) 1106 # d16_xyz / d16_xy typed-buffer loads and d16_xyz stores (cs_fmt_d16_xyz.asm header)
1106 problem = fmt_d16_xyz_test(a.build, spirv_dir, cs_env) 1107 problem = fmt_d16_xyz_test(a.build, spirv_dir, cs_env)
@@ -1210,8 +1211,8 @@ def run_suite(a, work: str) -> int:
1210 "cs_w64x_branch", "cs_w64x_ballot", "cs_w64x_wg128_branches", "cs_w64x_lds_raw", 1211 "cs_w64x_branch", "cs_w64x_ballot", "cs_w64x_wg128_branches", "cs_w64x_lds_raw",
1211 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", 1212 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load",
1212 "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", 1213 "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent",
1213 "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_barrier_early_end", 1214 "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w64x_partial_swizzle", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_barrier_early_end",
1214 "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_w64x_cmp_sdst", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_andn2_exec", 1215"cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_w64x_cmp_sdst", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_wrxchg2_ext", "cs_w32_wrxchg2st64", "cs_w32_andn2_exec",
1215 "cs_mask_vgpr_exec", "cs_w32_exec_computed", "cs_w64_exec_computed"): 1216 "cs_mask_vgpr_exec", "cs_w32_exec_computed", "cs_w64_exec_computed"):
1216 cs_dump_wants = { 1217 cs_dump_wants = {
1217 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], 1218 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000],
@@ -1250,6 +1251,12 @@ def run_suite(a, work: str) -> int:
1250 # ds_wrxchg*_rtn_b64, ds_or_rtn_b64, ds_min_f32, ds_max_rtn_f32 (cs_lds_xchg64_ext.asm header) 1251 # ds_wrxchg*_rtn_b64, ds_or_rtn_b64, ds_min_f32, ds_max_rtn_f32 (cs_lds_xchg64_ext.asm header)
1251 "cs_lds_xchg64_ext": [0x11110003, 0x33333333, 0xF00FF000, 0x04030201, 1252 "cs_lds_xchg64_ext": [0x11110003, 0x33333333, 0xF00FF000, 0x04030201,
1252 0x40302010, 0x70500705, 0x3FC00000, 0x80000000], 1253 0x40302010, 0x70500705, 0x3FC00000, 0x80000000],
1254 # ds_wrxchg2_rtn_b32's pair cases and ds_wrxchg2st64_rtn_b32
1255 # (cs_w32_wrxchg2_ext.asm / cs_w32_wrxchg2st64.asm headers)
1256 "cs_w32_wrxchg2_ext": [0x77777777, 0x88880008, 0x99990009, 0xDEADBEEF,
1257 0xAAAAAAAA, 0xBBBBBBBB, 0x12341234, 0x56785678],
1258 "cs_w32_wrxchg2st64": [0x33333333, 0x44444444, 0x55550005, 0x66660006,
1259 0xB0B00084, 0xB0B00088, 0xB0B00140, 0xB0B002C0],
1253 # ds_mskor, ds_and/xor_b64, ds_add_rtn_f32, ds_inc/dec/rsub_u32 (cs_lds_atomics_ext.asm header) 1260 # ds_mskor, ds_and/xor_b64, ds_add_rtn_f32, ds_inc/dec/rsub_u32 (cs_lds_atomics_ext.asm header)
1254 "cs_lds_atomics_ext": [0xF0F11234, 0xAB34CD78, 0x12345678, 0xF0F00F0F, 1261 "cs_lds_atomics_ext": [0xF0F11234, 0xAB34CD78, 0x12345678, 0xF0F00F0F,
1255 0xA5A55A5A, 0x00AA00AA, 0x7FB00000, 0xFE090700], 1262 0xA5A55A5A, 0x00AA00AA, 0x7FB00000, 0xFE090700],
@@ -1296,6 +1303,7 @@ def run_suite(a, work: str) -> int:
1296 "cs_w64x_lds_war": [1032, 1063, 1000, 1031, 2032, 2063, 2000, 2031], 1303 "cs_w64x_lds_war": [1032, 1063, 1000, 1031, 2032, 2063, 2000, 2031],
1297 "cs_w64x_partial": [40, 40, 528, 0, 0, 532, 539, 524820], 1304 "cs_w64x_partial": [40, 40, 528, 0, 0, 532, 539, 524820],
1298 "cs_w64x_partial_scmp": [0, 1, 0, 1, 1, 1, 1, 0], # s_cmp mask, -1 in a partial wave 1305 "cs_w64x_partial_scmp": [0, 1, 0, 1, 1, 1, 1, 0], # s_cmp mask, -1 in a partial wave
1306 "cs_w64x_partial_swizzle": [508, 523, 0, 0, 528, 0, 531, 0], # swizzle from a missing lane: 0
1299 "cs_w32_partial_scmp": [0, 1, 1, 0, 1, 1, 1, 1], # the same in a 20-thread wave32 1307 "cs_w32_partial_scmp": [0, 1, 1, 0, 1, 1, 1, 1], # the same in a 20-thread wave32
1300 # ds_permute_b32 in a 20-thread wave32: a never-launched source lane sends nothing (.asm header) 1308 # ds_permute_b32 in a 20-thread wave32: a never-launched source lane sends nothing (.asm header)
1301 "cs_w32_partial_permute": [0, 29, 127, 0, 1, 0, 134, 113], 1309 "cs_w32_partial_permute": [0, 29, 127, 0, 1, 0, 134, 113],
@@ -1331,21 +1339,23 @@ def run_suite(a, work: str) -> int:
1331 # as check.py does, where the device has none 1339 # as check.py does, where the device has none
1332 # (vk_compute_test exits 77) instead of reporting a failure. With LEONIDA_W64_EMULATE=1 they were 1340 # (vk_compute_test exits 77) instead of reporting a failure. With LEONIDA_W64_EMULATE=1 they were
1333 # translated with --wave64-emulate and run on any subgroup size. 1341 # translated with --wave64-emulate and run on any subgroup size.
1334 # cs_w64x_partial and cs_w64x_partial_scmp (40-thread groups) can't have full subgroups: they ask for 1342 # cs_w64x_partial, cs_w64x_partial_scmp and cs_w64x_partial_swizzle (40-thread groups) can't have full
1335 # size 64 without them. 1343 # subgroups: they ask for size 64 without them. With LEONIDA_W64_EMULATE=1 they ask for 32, the width the
1344 # emulation is for, as check.py's partial_wave_test does. RADV defaults compute to 64, and there
1345 # cs_w64x_partial_swizzle came out right even before its missing-lane reads were fixed; at 32 it did not.
1336 emulated = w64_emulated() 1346 emulated = w64_emulated()
1337 partial = name in ("cs_w64x_partial", "cs_w64x_partial_scmp") 1347 partial = name in ("cs_w64x_partial", "cs_w64x_partial_scmp", "cs_w64x_partial_swizzle")
1338 wave64 = name not in ("cs_store", "cs_signed_zero_nan", "cs_smem_soffset_imm", "cs_wqm_w32", "cs_w32_lane_wrap", "cs_movrelsd_2", 1348 wave64 = name not in ("cs_store", "cs_signed_zero_nan", "cs_smem_soffset_imm", "cs_wqm_w32", "cs_w32_lane_wrap", "cs_movrelsd_2",
1339 "cs_w32_permute", "cs_barrier_divergent", "cs_barrier_early_end", "cs_barrier_loop", 1349 "cs_w32_permute", "cs_barrier_divergent", "cs_barrier_early_end", "cs_barrier_loop",
1340 "cs_w32_lds_u8_d16", "cs_w32_int_ext", "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", 1350 "cs_w32_lds_u8_d16", "cs_w32_int_ext", "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops",
1341 "cs_w32_lds_subdword", "cs_w32_lds_wide", 1351 "cs_w32_lds_subdword", "cs_w32_lds_wide",
1342 "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_w32_permlane_fi", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap", 1352 "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_w32_permlane_fi", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap",
1343 "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec", 1353 "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_wrxchg2_ext", "cs_w32_wrxchg2st64", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec",
1344 "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", 1354 "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8",
1345 "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_dpp_cmp", "cs_w32_andn2_exec", 1355 "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_dpp_cmp", "cs_w32_andn2_exec",
1346 "cs_w32_exec_computed") and not emulated and not partial 1356 "cs_w32_exec_computed") and not emulated and not partial
1347 if partial and not emulated: 1357 if partial:
1348 cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="64") 1358 cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="32" if emulated else "64")
1349 if name in WAVE32_LANE_DUMPS: # 32 lanes even without index.json, as check.py requests (#774) 1359 if name in WAVE32_LANE_DUMPS: # 32 lanes even without index.json, as check.py requests (#774)
1350 cs_env = dict(os.environ, **WAVE32_LANE_ENV) 1360 cs_env = dict(os.environ, **WAVE32_LANE_ENV)
1351 rc, msg = run_cmd([vk_compute, spv, "1", "dump"] + (["--require-wave64"] if wave64 else []), env=cs_env) 1361 rc, msg = run_cmd([vk_compute, spv, "1", "dump"] + (["--require-wave64"] if wave64 else []), env=cs_env)
@@ -1367,7 +1377,7 @@ def run_suite(a, work: str) -> int:
1367 ok, detail = judge_cs_dump(rc, msg, want, wave64=wave64, partial=partial, emulated=emulated, 1377 ok, detail = judge_cs_dump(rc, msg, want, wave64=wave64, partial=partial, emulated=emulated,
1368 hexwords=name in ("cs_store", "cs_smem_soffset_imm", "cs_w32_lds_u8_d16", 1378 hexwords=name in ("cs_store", "cs_smem_soffset_imm", "cs_w32_lds_u8_d16",
1369 "cs_w32_lds_subdword", "cs_w32_lds_wide", 1379 "cs_w32_lds_subdword", "cs_w32_lds_wide",
1370 "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_signed_zero_nan")) 1380 "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_wrxchg2_ext", "cs_w32_wrxchg2st64", "cs_signed_zero_nan"))
1371 if ok and None in want: 1381 if ok and None in want:
1372 unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None) 1382 unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None)
1373 detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)" 1383 detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)"