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:
authorRain156 <77776581+Rain156@users.noreply.github.com>2026-11-24 21:19:30 +0800
committerRain156 <77776581+Rain156@users.noreply.github.com>2026-11-24 21:19:30 +0800
commitdb19bbd3455a757c3fe986c6e6db36998f275150 (patch)
treefc55054b03582969e5897c73a667cc4c8b44ad5a /scripts/run_gpu_tests.py
parente0d4fd2b81e6636b1c6bb2f76be79e910e84d84b (diff)
runtime: connect native pipelines and title resources to the offline first-run UI
Build on the public frame-loop integration in #321. Carry the texture-view and depth work from #213 and #261, the layout provider from #461, the responsive window from #526, and the rectangle generator from #682. Integrate the Xbox constant-buffer row addressing measured in #513 and the draw-time rectangle selection in #722. Keep all fixtures synthetic. The Windows GPU path resolves title-owned shader objects, retires geometry uploads per submission, materializes texture views on use, maps linear surfaces, and delivers completed GPU label writes. A first-run UI launch selects the tested settings for these paths.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 483287fbd..a32e68ea5 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -25,9 +25,8 @@ sys.path.insert(0, os.path.join(ROOT, "tools"))
25import mc_command # noqa: E402 25import mc_command # noqa: E402
26sys.path.insert(0, SHADER_DIR) 26sys.path.insert(0, SHADER_DIR)
27from build import CLIP_CASES, clip_container, shader_source 27from build import CLIP_CASES, clip_container, shader_source
28from check import (Skip, clip_test, fmt_1010102_test, fmt_d16_xyz_test, fmt_int_narrow_test, fmt_sint32_test, 28from check import (Skip, clip_test, fmt_1010102_test, fmt_d16_xyz_test, fmt_int_narrow_test,
29 fmt_xy_xyz_test, tbuffer_store_test) 29 fmt_sint32_test, fmt_xy_xyz_test, tbuffer_store_test, compute_unsupported)
30from check import compute_unsupported # vk_compute_test's exit 77 over a feature the module needs
31from compute_fixture import compute_header 30from compute_fixture import compute_header
32from check import SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test) 31from check import SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test)
33from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, PK_MUL_LO_WORDS, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES, 32from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, PK_MUL_LO_WORDS, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES,
@@ -35,6 +34,7 @@ from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, PK_MUL_
35 pick_build_dir, start_failure, table_fetch_test, texture_gradient_a16_test, texture_mip_test) 34 pick_build_dir, start_failure, table_fetch_test, texture_gradient_a16_test, texture_mip_test)
36from check import SIGNED_MIP_TEST, UINT_MIP_TEST 35from check import SIGNED_MIP_TEST, UINT_MIP_TEST
37from check import cbv_modulate_test 36from check import cbv_modulate_test
37from check import IMAGE_STORE_CASES, texture_uav_test
38from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT 38from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT
39from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) 39from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan)
40from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py 40from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py
@@ -1316,12 +1316,13 @@ def run_suite(a, work: str) -> int:
1316 unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None) 1316 unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None)
1317 detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)" 1317 detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)"
1318 results.append((name, ok, detail)) 1318 results.append((name, ok, detail))
1319 elif name == "cs_imgstore": 1319 elif name in IMAGE_STORE_CASES:
1320 rc, msg = run_cmd([vk_store, spv]) 1320 rc, msg = run_cmd([vk_store, spv, *IMAGE_STORE_CASES[name]])
1321 results.append((name, *helper_result(rc, msg)))
1322 elif name in ("cs_imgload", "cs_imgload_tfe", "cs_imgload_d16", "cs_imgload_d16_tfe", "cs_sample_lz_int_d16"):
1323 rc, msg = run_cmd([vk_store, spv, "load" if name in ("cs_imgload", "cs_imgload_tfe") else "load-d16"])
1324 results.append((name, *helper_result(rc, msg))) 1321 results.append((name, *helper_result(rc, msg)))
1322 elif name == "cs_texture_uav":
1323 problem = texture_uav_test(a.build, spv)
1324 results.append((name, None if isinstance(problem, Skip) else not problem,
1325 problem or "D3D12/Vulkan storage-image readback matched"))
1325 elif name in MIP_TEST_PASSES: 1326 elif name in MIP_TEST_PASSES:
1326 problem = texture_mip_test(a.build, spirv_dir, name) 1327 problem = texture_mip_test(a.build, spirv_dir, name)
1327 ok = None if isinstance(problem, Skip) else not problem 1328 ok = None if isinstance(problem, Skip) else not problem