upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorqerdavo-dot <285653487+qerdavo-dot@users.noreply.github.com>2026-11-22 16:46:48 +0300
committerqerdavo-dot <285653487+qerdavo-dot@users.noreply.github.com>2026-11-22 16:46:48 +0300
commit03ed39c88b31adb450af62b345c3c2a41b3631fb (patch)
tree602f894d871daf7c9a4de3572a4126d3bfa8075c /runtime/src/pe_loader.cpp
parenta0acd33d77babe67a28e398b2936a9f735a50f5d (diff)
rdna2spirv: drop a failed retried shader's stale .spv and index entry
A shader that raises Unsupported or a translator error on a retried partial run kept the .spv and index.json entry an earlier successful run published: only spirv-as/val rejections went through the invalid set that the index merge pops. The stale entry masks the regression from make_game.py, which takes index.json as proof the translation finished, and the stale module stays loadable by the runtime. Route all three failure paths through one drop_stale helper: unlink the old .spv and mark the name for the index merge to drop. The .spvasm text stays for diagnosis, as it does on a rejection. Shard and --limit runs write their index fresh from this run's metadata, so they only gain the unlink. Tests: two synthetic CLI tests (s_barrier in a PS is Unsupported before any SPIR-V tool runs; a mocked ValueError covers the translator-error path). Both fail without the change. Standard library only, no game data. AI-assisted. Tested on CPU (Windows 11, Python 3.12): tests/test_rdna2spirv_cli.py (14 tests), unittest discover tests/semantic, and pytest tests/test_rdna2spirv_cli.py tests/test_translate.py with llvm-mc 23.1.5 (AMDGPU) and SPIRV-Tools v2026.4. No GPU was used.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions