diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-21 16:19:54 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-21 16:19:54 -0500 |
| commit | 4e390e0871d7265e629b51aca8ff99a15a6a6845 (patch) | |
| tree | 911be2a93b9f43a55bfaac24bf0167e3a97819d2 /scripts/run_gpu_tests.py | |
| parent | 531f778a270843143ce4ec759606ea0ccc00047f (diff) | |
run_gpu_tests: --filter ps_flat also builds vs_ids, which ps_flat is drawn with (fixes #192)
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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index cef73011b..edd5cad19 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -377,9 +377,13 @@ def run_suite(a, work: str) -> int: | |||
| 377 | asm_files = sorted(f for f in os.listdir(SHADER_DIR) if f.endswith(".asm")) | 377 | asm_files = sorted(f for f in os.listdir(SHADER_DIR) if f.endswith(".asm")) |
| 378 | if a.filter: | 378 | if a.filter: |
| 379 | asm_files = [f for f in asm_files if a.filter in f] | 379 | asm_files = [f for f in asm_files if a.filter in f] |
| 380 | # Shaders a selected test draws with are built even when the filter leaves them out (#192): ps_flat uses vs_ids. | ||
| 381 | build_files = list(asm_files) | ||
| 382 | if any(f.startswith("ps_flat") for f in asm_files) and "vs_ids.asm" not in build_files: | ||
| 383 | build_files.append("vs_ids.asm") | ||
| 380 | 384 | ||
| 381 | # 1. Create synthetic DXBC / FSSM metadata + assemble .asm -> .s | 385 | # 1. Create synthetic DXBC / FSSM metadata + assemble .asm -> .s |
| 382 | for fname in asm_files: | 386 | for fname in build_files: |
| 383 | name = os.path.splitext(fname)[0] | 387 | name = os.path.splitext(fname)[0] |
| 384 | if name == "gs_tri": | 388 | if name == "gs_tri": |
| 385 | dxbc = make_dxbc([ | 389 | dxbc = make_dxbc([ |