upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 14:30:33 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 14:30:33 -0500
commit15f5b2fbc0db579ec02b3ee9149be29ee8034e8b (patch)
tree3dfd96619ae45589f89cf2adc83b7ceac4571a88 /scripts
parent1b2e8ff3d6a018a97dd3dd8f20e4cd06f3f2ed90 (diff)
Fix what the round-41 merges broke
- tests/semantic: BaseVertex/BaseInstance read 0 in the wave interpreter; the LDS MockGens follow SHADER-309 (lds_bound, lds_access, lds_atomic); abs emission tests load their operand, since SHADER-315 folds scalar ALU on constants. - test_translate: the dynamic gather sampler is a loaded word, not s16 + 0 (SHADER-315 folds it). - test_world_build: DDS downscale weights colours by alpha (62804d0d). - test_fspx_shaders_stage: the fake disassembler writes the listing make_game now checks. - xgameruntime_test: re-read the package id after clearing the LEONIDA_PACKAGE_ID override. - docs: one row per topic again in design.md (72 topics) and README.md; one Other languages line; embedded_shaders.md keeps one copy of each bullet; animation.md links the heading anchor. - tools/scripts: character_textures uses report_paths.same_report_path; stdout guard on six programs; LF write in vs_input_survey; the cl.exe fallback compiles winhttp_offline.cpp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build_runtime.ps12
-rw-r--r--scripts/vs_input_survey.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build_runtime.ps1 b/scripts/build_runtime.ps1
index 03b922e81..abc8c3f05 100644
--- a/scripts/build_runtime.ps1
+++ b/scripts/build_runtime.ps1
@@ -35,7 +35,7 @@ if ((Test-Path $cmake) -and (Test-Path $ninja)) {
35 Write-Warning "VS C++ CMake tools not found: building with cl.exe directly, without the GameInput shim (SDL3). Install the CMake tools component to get it." 35 Write-Warning "VS C++ CMake tools not found: building with cl.exe directly, without the GameInput shim (SDL3). Install the CMake tools component to get it."
36 $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue" 36 $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue"
37 $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" } 37 $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" }
38 $files = "src\main.cpp", "src\pe_loader.cpp", "shims\registry.cpp", "shims\file_system.cpp", "shims\xmem.cpp", "shims\d3d12_xs.cpp", "shims\d3d12_xs_device.cpp", "shims\d3d12_xs_rootsig.cpp", "shims\xgameruntime.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" } 38 $files = "src\main.cpp", "src\pe_loader.cpp", "shims\registry.cpp", "shims\file_system.cpp", "shims\xmem.cpp", "shims\d3d12_xs.cpp", "shims\d3d12_xs_device.cpp", "shims\d3d12_xs_rootsig.cpp", "shims\xgameruntime.cpp", "shims\winhttp_offline.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" }
39 $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`"" 39 $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`""
40 $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" } 40 $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" }
41 $body = @" 41 $body = @"
diff --git a/scripts/vs_input_survey.py b/scripts/vs_input_survey.py
index e1da657ff..89e648364 100644
--- a/scripts/vs_input_survey.py
+++ b/scripts/vs_input_survey.py
@@ -125,10 +125,14 @@ def main():
125 legacy = not (m.get("exp prim") or m.get("s_sendmsg") or m.get("v_mbcnt")) 125 legacy = not (m.get("exp prim") or m.get("s_sendmsg") or m.get("v_mbcnt"))
126 print("layout:", "legacy (non-NGG) VS" if legacy else "NGG markers present: check the VS input layout") 126 print("layout:", "legacy (non-NGG) VS" if legacy else "NGG markers present: check the VS input layout")
127 if a.json: 127 if a.json:
128 with open(a.json, "w", encoding="utf-8") as f: 128 with open(a.json, "w", encoding="utf-8", newline="\n") as f:
129 json.dump(r, f, indent=1) 129 json.dump(r, f, indent=1)
130 return 0 130 return 0
131 131
132 132
133if __name__ == "__main__": 133if __name__ == "__main__":
134 try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
135 sys.stdout.reconfigure(errors="replace")
136 except (AttributeError, ValueError, OSError):
137 pass
134 sys.exit(main()) 138 sys.exit(main())