diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 18:36:19 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 18:36:19 -0500 |
| commit | 3a2820b3bff812ff3cff6a4d4087912edb0541bb (patch) | |
| tree | ab2522760b3930781a3531f7ded56ba449041e77 /scripts/run_gpu_tests.py | |
| parent | 75f6890bb98214d5112c7eb1126f67f9e2948a0a (diff) | |
| parent | c1e1ef0b81234ac46ca25a810ab81219408ea6ba (diff) | |
Merge main c1e1ef0b8 into RT-POST-LOAD-GPU-MEMORY (#2098)
Two conflicts:
- d3d12_com.cpp, note_direct_heap_indexing: main's console_descriptor_table_va(cbv_srv_uav_base_) for the tracked
table, with this branch's per-site once() flag instead of note_once on every draw.
- d3d12_vulkan_device.cpp, PipelineState::build_compute: this branch's body (build_compute_pipeline, journal, compile
helper). main's dev_status::Build around the compute create moves into build_compute_pipeline, next to the
pipeline_profile::DriverCall, so the status line still names the compute pipeline in the driver.
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.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index cff55f21d..f87290ec6 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1211,7 +1211,7 @@ def run_suite(a, work: str) -> int: | |||
| 1211 | "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", |
| 1212 | "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", |
| 1213 | "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", |
| 1214 | "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", |
| 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_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", |
| 1216 | "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"): |
| 1217 | cs_dump_wants = { | 1217 | cs_dump_wants = { |
| @@ -1303,6 +1303,7 @@ def run_suite(a, work: str) -> int: | |||
| 1303 | "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], |
| 1304 | "cs_w64x_partial": [40, 40, 528, 0, 0, 532, 539, 524820], | 1304 | "cs_w64x_partial": [40, 40, 528, 0, 0, 532, 539, 524820], |
| 1305 | "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 | ||
| 1306 | "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 |
| 1307 | # 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) |
| 1308 | "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], |
| @@ -1338,10 +1339,12 @@ def run_suite(a, work: str) -> int: | |||
| 1338 | # as check.py does, where the device has none | 1339 | # as check.py does, where the device has none |
| 1339 | # (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 |
| 1340 | # translated with --wave64-emulate and run on any subgroup size. | 1341 | # translated with --wave64-emulate and run on any subgroup size. |
| 1341 | # 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 |
| 1342 | # 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. | ||
| 1343 | emulated = w64_emulated() | 1346 | emulated = w64_emulated() |
| 1344 | 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") |
| 1345 | 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", |
| 1346 | "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", |
| 1347 | "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", |
| @@ -1351,8 +1354,8 @@ def run_suite(a, work: str) -> int: | |||
| 1351 | "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", | 1354 | "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", |
| 1352 | "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", |
| 1353 | "cs_w32_exec_computed") and not emulated and not partial | 1356 | "cs_w32_exec_computed") and not emulated and not partial |
| 1354 | if partial and not emulated: | 1357 | if partial: |
| 1355 | cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="64") | 1358 | cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="32" if emulated else "64") |
| 1356 | 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) |
| 1357 | cs_env = dict(os.environ, **WAVE32_LANE_ENV) | 1360 | cs_env = dict(os.environ, **WAVE32_LANE_ENV) |
| 1358 | 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) |