diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 13:12:54 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 13:12:54 -0500 |
| commit | 407a53923e4ef32a10e95b1fb962018209cd0977 (patch) | |
| tree | 89db74ae407cb9c3af70c88f5fb7c4636fac03de /scripts/run_gpu_tests.py | |
| parent | ff99084992d04f85a9fb9ca03c0e0b78b6f82f40 (diff) | |
| parent | 0ec464b0e11fb5c945cd7e9edba52d4cd330df7a (diff) | |
Merge pull request #2048 from whoalin1
# Conflicts:
# docs/testing.md
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 67da492ac..e607033d8 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -294,6 +294,11 @@ def w64_emulated() -> bool: | |||
| 294 | # subgroup, matching check.py (W64_EMULATED). Accepts "1"/"true"/"yes"/"on" and tolerates | 294 | # subgroup, matching check.py (W64_EMULATED). Accepts "1"/"true"/"yes"/"on" and tolerates |
| 295 | # the trailing space cmd.exe's `set VAR=1 &` leaves in the value. | 295 | # the trailing space cmd.exe's `set VAR=1 &` leaves in the value. |
| 296 | return (os.environ.get("LEONIDA_W64_EMULATE") or "").strip().lower() in ("1", "true", "yes", "on") | 296 | return (os.environ.get("LEONIDA_W64_EMULATE") or "").strip().lower() in ("1", "true", "yes", "on") |
| 297 | def pc_tail_ubo() -> bool: | ||
| 298 | # LEONIDA_PC_TAIL_UBO=1: translate with --pc-tail-ubo (s0..s31 in 128 push-constant bytes, the tail in a uniform | ||
| 299 | # block at set 1), for devices whose maxPushConstantsSize is 128. The test programs read the same variable | ||
| 300 | # (runtime/test/vk_pc_tail.h) and bind the block; same accepted values as LEONIDA_W64_EMULATE. | ||
| 301 | return (os.environ.get("LEONIDA_PC_TAIL_UBO") or "").strip().lower() in ("1", "true", "yes", "on") | ||
| 297 | def wavemask_check(vk_compute: str, spv: str, env: dict | None, emulated: bool) -> tuple[bool | None, str]: | 302 | def wavemask_check(vk_compute: str, spv: str, env: dict | None, emulated: bool) -> tuple[bool | None, str]: |
| 298 | """cs_wavemask, as in check.py: (passed, detail), passed None for a skip. The native build needs a 64-wide | 303 | """cs_wavemask, as in check.py: (passed, detail), passed None for a skip. The native build needs a 64-wide |
| 299 | subgroup and skips where the device has none; with LEONIDA_W64_EMULATE=1 it was translated with | 304 | subgroup and skips where the device has none; with LEONIDA_W64_EMULATE=1 it was translated with |
| @@ -722,6 +727,8 @@ def run_suite(a, work: str) -> int: | |||
| 722 | cmd.append("--texel-offset-fallback") | 727 | cmd.append("--texel-offset-fallback") |
| 723 | if MESH_COMPUTE: # mesh shaders as compute writing to a buffer, drawn by tools/mesh_compute_vs.py | 728 | if MESH_COMPUTE: # mesh shaders as compute writing to a buffer, drawn by tools/mesh_compute_vs.py |
| 724 | cmd.append("--mesh-compute") | 729 | cmd.append("--mesh-compute") |
| 730 | if pc_tail_ubo(): # 128 push-constant bytes; heap base and code base from a uniform block at set 1 | ||
| 731 | cmd.append("--pc-tail-ubo") | ||
| 725 | if os.environ.get("LEONIDA_FMA") in ("glsl", "khr"): # fused multiply-add: GLSL Fma or OpFmaKHR (docs/design.md) | 732 | if os.environ.get("LEONIDA_FMA") in ("glsl", "khr"): # fused multiply-add: GLSL Fma or OpFmaKHR (docs/design.md) |
| 726 | cmd += ["--fma", os.environ["LEONIDA_FMA"]] | 733 | cmd += ["--fma", os.environ["LEONIDA_FMA"]] |
| 727 | rc, out = run_cmd(cmd, gpu=False) | 734 | rc, out = run_cmd(cmd, gpu=False) |