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:
authorAlex Collini <pipodi93@gmail.com>2026-11-21 22:36:07 +0100
committerAlex Collini <pipodi93@gmail.com>2026-11-21 22:36:07 +0100
commit0a57596c88c5026bfa194b05777f964e92ec3883 (patch)
tree6136a8096e76d067e52d1adee64ead693bd007d0 /runtime/src/pe_loader.cpp
parentdcf5f44879ffa7cc1a1b61e284568b03c39d9885 (diff)
Translator: accept LLVM 23's 0x80 in unused VOP3 source fields; check for a .NET SDK, not just dotnet
LLVM 23 prints a VOP3/VOP3P source it doesn't read (SRC1/SRC2 of one- and two-source ops) as 0x80, inline constant 0, where the game's compiler stores 0. Re-anchoring in shaders with code-embedded data compares the printed encoding with the blob, so those instructions never matched and 1,471 of the 1,473 such shaders were rejected ("reachable instruction with normalized encoding"). same_encoding now ignores an SRC1/SRC2 field only when it is 0 in the blob and 0x80 as printed; a source LLVM does read prints as decoded (s0), so a real difference still fails. The existing VOP3P op_sel_hi rule now combines with it. make_game.py: `dotnet` is on PATH with only the .NET runtime, and the asset stage then fails in `dotnet build` ("No .NET SDKs were found"). The preflight now asks `dotnet --list-sdks` for an SDK 8 or newer. Tested on Windows 11, LLVM 23.1.5 (MSYS2 UCRT64 llvm-tools), the 1,473 shaders with embedded data, disassembled with this branch's shader_disasm.py: main: 2 translated, 1471 "normalized encoding" this branch: 1473 translated, 1473 pass spirv-val Full corpus on the earlier tree with the same rule: 26,503/26,503 pass. .NET check: false with only the runtime installed, true after adding SDK 8.0.428. No GPU pipeline run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013qV4hmKSJmU6cXAgrehZzr
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions