diff options
| author | Barbital11111 <93769660+Barbital11111@users.noreply.github.com> | 2026-11-24 00:33:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 10:33:34 -0600 |
| commit | 511e3826ba8addd4adcd08270d788bc8cc4d4389 (patch) | |
| tree | c11933f0a252fd03c44682682cdd645f12ac0c35 /scripts | |
| parent | e0816d6af23f42353a3939cf4c228675c6e31305 (diff) | |
run_gpu_tests: reuse pre-disassembled work listings (#7332)
Merging after diff review as part of the base pass.
Diffstat (limited to 'scripts')
| -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 ff52a3f9b..8c6bdcf65 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -860,7 +860,11 @@ def run_suite(a, work: str) -> int: | |||
| 860 | fname = shader_source(name) + ".asm" | 860 | fname = shader_source(name) + ".asm" |
| 861 | disasm_path = os.path.join(disasm_dir, f"{name}.s") | 861 | disasm_path = os.path.join(disasm_dir, f"{name}.s") |
| 862 | if disasm_src is not None: | 862 | if disasm_src is not None: |
| 863 | shutil.copyfile(os.path.join(disasm_src, f"{name}.s"), disasm_path) | 863 | try: |
| 864 | shutil.copyfile(os.path.join(disasm_src, f"{name}.s"), disasm_path) | ||
| 865 | except shutil.SameFileError: | ||
| 866 | # A replay can use the work folder's existing listings as its source. | ||
| 867 | pass | ||
| 864 | else: | 868 | else: |
| 865 | assemble_to_s(a.llvm_mc, os.path.join(SHADER_DIR, fname), disasm_path, name) | 869 | assemble_to_s(a.llvm_mc, os.path.join(SHADER_DIR, fname), disasm_path, name) |
| 866 | disasm_files.append(disasm_path) | 870 | disasm_files.append(disasm_path) |