Commit Graph

4289 Commits

Author SHA1 Message Date
10342f4808 docs/boot_leads: link CONTRIBUTING.md from docs/ as ../CONTRIBUTING.md
The new page linked CONTRIBUTING.md relative to docs/, where it does not
exist, so test_docs_links fails on main.
2026-11-24 15:47:57 +01:00
8f05e09e22 docs: add boot_leads.md, open boot leads and how to implement them 2026-11-24 09:45:14 -05:00
89e0ea9b55 Merge pull request #402 from ubiquitarianism/feat/xs-frame-pacing-presentx
d3d12_xs: add multi-event FramePacer TOKEN_ON_TIMEOUT and wire XboxPresentation to device/queue slots (RT-XS-FRAME-PACING-PRESENTX)
2026-11-24 08:44:42 -05:00
05318a387c Merge pull request #401 from ubiquitarianism/feat/gdk-speech-display-lifecycle
xgameruntime_offline: one silent speech voice with WAVE streams, display power requests for timeout deferrals (RT-GDK-SPEECH-DISPLAY-LIFECYCLE)
2026-11-24 08:44:39 -05:00
dd4be16087 Merge pull request #359 from ubiquitarianism/feat/xs-device-stops-7-9
d3d12_xs_device: slot 73 creates the console ID3D12GraphicsCommandListX IID as ID3D12GraphicsCommandList (RT-XS-DEVICE-STOPS-7-9)
2026-11-24 08:44:17 -05:00
de223bed9e Merge pull request #357 from ubiquitarianism/feat/ws2-offline-shim
runtime: add offline loopback-only Winsock2 (ws2_32.dll) shim
2026-11-24 08:44:13 -05:00
47c6511747 Merge pull request #577 from Mby159/feature/d3d-mesh-clipping-counter
Merging.

**Why merged:** Stacked on #540: the clipping invocations of a mesh segment now come from a mesh-pipeline query, so CInvocations/CPrimitives stay correct for mixed vertex + mesh work. sodove verified the exact head, including the disconnected-feature negative control that found (and now proves fixed) a gap in the test.

**Why it's good:** The embedded SPIR-V in statistics_sum_spirv.h was recompiled from the PR's .comp: all 431 words are identical and spirv-val passes. d3d12_mesh with validation: 0 errors, mixed C 12 vs vertex-only C 2, so the mesh share is 10, as expected.

Tested on Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, alone on main (21625bca8 or 51f316092) and in a cumulative merge of #497, #278, #310, #334, #346, #340, #355, #361, #363, #620 and #577 (which carries #540) on main 2d73c242f (git merge-tree: 0 conflicts against current main). Repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests): 566 passed / 5 skipped / 0 failed on main and on main + batch. compileall OK. Full ctest: 302/304 on main and on main + batch (the same two pre-existing failures, d3d12_execute_indirect_validation and d3d12_depth_resolve, no new ones).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 08:38:08 -05:00
3bb46d658b Merge pull request #540 from Mby159/d3d-291-mesh-statistics
Merging.

**Why merged:** Fixes the mesh half of #506: the statistics pool active during vkCmdDrawMeshTasksEXT no longer enables the two clipping counters that VUID-vkCmdDrawMeshTasksEXT-pipelineStatistics-07076 forbids. Verified on an RTX 5070 Ti (sodove), RTX 4080 (quartz-heron-58) and RX 7900 XTX (bvtterbroot), all with validation on; the rebase to 916dbc619 is byte-identical (range-diff checked). Merged on its own first because #577 is stacked on it.

**Why it's good:** On the 4070 SUPER with LEONIDA_VK_VALIDATION=1: plain main fails d3d12_mesh with 3x VUID-...-07076; main + #540 + #577 passes d3d12_mesh, replay_query_edges and replay_query_predication with 0 validation errors, and the counters match sodove's numbers (mesh-only C 8/0, PS 1024).

Tested on Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, alone on main (21625bca8 or 51f316092) and in a cumulative merge of #497, #278, #310, #334, #346, #340, #355, #361, #363, #620 and #577 (which carries #540) on main 2d73c242f (git merge-tree: 0 conflicts against current main). Repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests): 566 passed / 5 skipped / 0 failed on main and on main + batch. compileall OK. Full ctest: 302/304 on main and on main + batch (the same two pre-existing failures, d3d12_execute_indirect_validation and d3d12_depth_resolve, no new ones).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 08:37:58 -05:00
14b5825881 Merge pull request #497 from Rain156/feat/native-graphics-shader-index
Merging.

**Why merged:** Indexes the DXBC identities the Xbox native graphics pipelines use, which the native-PSO path needs. The earlier hold (new tool not listed as a translator input) is fixed in 62a95883b: native_pso_hashes is now in translator_deps.cmake, make_game.py's translation sources and runtime.yml.

**Why it's good:** Security read of the three-dot diff: tools and tests only, no binaries, downloads or network calls. The PR's own tests: 129 passed. The consistency set, which caught the missing input registration last time, is clean now.

Tested on Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, alone on main (21625bca8 or 51f316092) and in a cumulative merge of #497, #278, #310, #334, #346, #340, #355, #361, #363, #620 and #577 (which carries #540) on main 2d73c242f (git merge-tree: 0 conflicts against current main). Repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests): 566 passed / 5 skipped / 0 failed on main and on main + batch. compileall OK. Full ctest: 302/304 on main and on main + batch (the same two pre-existing failures, d3d12_execute_indirect_validation and d3d12_depth_resolve, no new ones).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 08:36:39 -05:00
d7354f2b91 xgameruntime_offline: one silent voice, drop XAppCaptureImpl and the lifecycle shim (#401 review)
- Speech is consistent now: XSpeechSynthesizerEnumerateInstalledVoices calls back once with a silent
  voice (XSpeechSynthesizerVoiceInformation in the GDK reference's layout), and SetCustomVoice accepts
  that voice id only. The enumeration takes (context, callback), the GDK reference's order; main read
  them the other way round.
- XAppCaptureImpl is left to #537, which serves it in xgameruntime.cpp with its full layout.
- The lifecycle shim (app-state callbacks, CreateWindowEx hook) moves to its own pull request.
- docs/runtime_imports.md: the speech and launcher bullets match the code; the launcher's display power
  request is called out as a side effect on the host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:33:05 -03:00
2d73c242fd Merge pull request #607 from TuroYT/docs/index-missing-pages
docs/README: index dev-tools, cpu_features and directstorage (DOC-INDEX-MISSING-PAGES)
2026-11-24 08:10:27 -05:00
a1ac6ff2b1 Merge pull request #666 from LouisRiverstone/carry-old-9929
docs/design.md: one copy of each rule in the EXEC, v_cvt_pknorm and Wave64 mask ballot rows (OLD-9929)
2026-11-24 08:10:23 -05:00
6a2cb10a04 Merge pull request #554 from Puttergilll/docs/gpu-result-instructions
docs: fix GPU result submission instructions
2026-11-24 08:10:19 -05:00
51f3160923 Merge pull request #590 from JiyouProt/codex/gpu-valu64-shifts
tests: GPU readback for dynamic 64-bit vector shifts (GPU-VALU64-SHIFTS)
2026-11-24 07:47:23 -05:00
396159f9c3 Merge pull request #667 from LouisRiverstone/carry-old-9933
docs/design.md: one copy of each rule in the 16-bit interpolation without PerVertexKHR row (OLD-9933)
2026-11-24 07:43:34 -05:00
916dbc619d d3d12/vulkan: the mesh statistics pool enables no forbidden counter (D3D-291) 2026-11-24 12:35:29 +00:00
1bb23a2803 d3d12/vulkan: a mesh segment's clipping invocations come from a mesh-primitives query (D3D-MESH-CLIPPING-COUNTER)
Where the device has the meshShaderQueries feature of VK_EXT_mesh_shader, the number of
primitives the mesh shader emitted comes from a VK_QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT
query run around each mesh segment, and it is added as the clipping invocations of that
segment. CPrimitives stays 0: Vulkan has no clipped-primitive counter, and D3D12's
CPrimitives is the clipper's output.

Claim: D3D-MESH-CLIPPING-COUNTER
Depends on: #540
2026-11-24 12:35:29 +00:00
1f88b25d9a ws2_offline: loopback-bind unbound sends, refuse multicast joins and WSAJoinLeaf groups
Closes the gaps from the security review on #357:

- sendto, WSASendTo, WSASendMsg (both exports) and WSAJoinLeaf on an
  unbound socket made the host bind it to the wildcard address
  (Microsoft's sendto remarks), so its port took datagrams from other
  hosts. The shim now binds such a socket to 127.0.0.1, ::1 or
  ::ffff:127.0.0.1 first and fails with WSAEADDRNOTAVAIL if it stays
  unbound.
- setsockopt (ws2_32 name and #21) refuses IP_ADD_MEMBERSHIP,
  IP_ADD_SOURCE_MEMBERSHIP, IPV6_ADD_MEMBERSHIP, MCAST_JOIN_GROUP and
  MCAST_JOIN_SOURCE_GROUP with WSAEADDRNOTAVAIL. wsock32's setsockopt is
  its own export (dumpbin on Windows 10 22H2: not a forwarder) that remaps
  the Winsock 1.1 IP_ numbers (Wine dlls/wsock32/socket.c has the same
  table), so it gets its own wrapper that also refuses the 1.1 join (5)
  and forwards everything else to the host wsock32.
- WSAJoinLeaf gets connect's loopback check, so a group is refused.

Tested: ws2_offline_test 71 checks, 0 failures, MSVC 14.44 / SDK
10.0.26100 on Windows 10, including a control check that the host sendto
alone binds to 0.0.0.0; docs tests 47 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:19:38 -03:00
9cab24e7bf docs/design.md: one copy of each rule in the 16-bit interpolation without PerVertexKHR row
- docs/design.md: one copy of each rule in the 16-bit interpolation without PerVertexKHR row

Carried over from old-pr/9933 (old upstream PR 9933), rebased on main.
2026-11-24 08:19:40 -03:00
608014ff91 docs/design.md: one copy of each rule in the EXEC, v_cvt_pknorm and Wave64 mask ballot rows
- docs/design.md: one copy of each rule in the EXEC, v_cvt_pknorm and Wave64 mask ballot rows
- docs/design.md: the pknorm NaN measurement once, in the Measured on RDNA2 sentence (@skorex on old PR 4899)

Carried over from old-pr/9929 (old upstream PR 9929), rebased on main.
2026-11-24 08:15:59 -03:00
4d470fd69b docs/boot.md: the Windows PowerShell 5.1 capture survives ErrorActionPreference Stop (PROC-271)
- docs/boot.md: the Windows PowerShell 5.1 capture survives ErrorActionPreference Stop (PROC-271)

Carried over from old-pr/9939 (old upstream PR 9939), rebased on main.
2026-11-24 08:15:59 -03:00
d52ab6b5b3 d3d12_xs_device: map only the measured console list IID at slot 73
The slot 73 fallback retried every IID the PC device refused, so asking for
a public list revision the backend lacks (ID3D12GraphicsCommandList9 on a
revision-8 device) returned S_OK and a base list instead of E_NOINTERFACE
(review on #359). Only the console ID3D12GraphicsCommandListX IID
{c3827890-4024-474c-98cf-645b51dc4874} (#445) is now created as
ID3D12GraphicsCommandList, in one call, and the list proxy answers
QueryInterface for it. Every other IID reaches the device unchanged.

Tested: xs_proxy_mock (List9 and an unknown IID keep E_NOINTERFACE with a
null output; the console IID is created once and is queryable) and
d3d12_vulkan_device with MSVC 14.44 / SDK 10.0.26100; docs tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:15:02 -03:00
62a95883b6 build: track native PSO catalog dependencies
Track the catalog writer and its local imports in the shader-stage fingerprint
and CMake fixture dependencies. Cover the same files in both Runtime event
filters, including the optional native scanner reached by the carver.
Check both import graphs and document the standalone catalog refresh for
existing translations.

On Windows x64, touching the writer rebuilt the three bindless fixtures once.
All three passed spirv-val and both Vulkan bindless tests passed on an RTX
5070 Ti with driver 617.42. The semantic suite ran 6,108 tests with no failed
files. The regenerated 25,321-row catalog matched the local reference byte
for byte.

AI-assisted: OpenAI Codex
2026-11-24 18:13:26 +08:00
9e77e974ee Merge remote-tracking branch 'upstream/main' into feat/native-graphics-shader-index 2026-11-24 18:06:59 +08:00
9fd65a4ee5 docs/README: index dev-tools, cpu_features and directstorage (DOC-INDEX-MISSING-PAGES)
docs/README.md did not link three existing pages: dev-tools.md, cpu_features.md and directstorage.md. Add one row for each, in the table where its neighbours fit. Docs only; no game files.
2026-11-24 10:52:39 +01:00
73d2d4cd6c Merge pull request #552 from GeorgiyDemo/gpu-m5pro
Why merged: adds an Apple M5 Pro / MoltenVK 1.4.2 GPU record and its row in docs/gpu_test_results.md, matching the existing rows.
Why it's good: synthetic fixtures only, no game data; clean on main 7430f59; consistency 565/0 before and after.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 04:26:10 -05:00
0f8ab027a5 Merge pull request #550 from Stephan2620/docs/cs-dpp-ops-moltenvk-row-continued
Why merged: docs/testing.md's MoltenVK 1.4.2 cs_dpp_ops row now points at the translator fix main already carries (SHADER-529, 4d65bae6b).
Why it's good: one row; docs tests still pass (design_rows 5, image_fuzz 63, valu_fuzz 80); clean on main 7430f59; consistency 565/0.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 04:25:55 -05:00
49d904fef6 tests: GPU readback for dynamic 64-bit vector shifts (GPU-VALU64-SHIFTS)
Exercise boundary counts and overlapping destination registers with runtime inputs.
AI-assisted with Codex.
2026-11-24 10:15:23 +01:00
fed2fd6d05 Merge pull request #450 from EdenBendheim/ubiq/boot-trace-xmem-physical-pages
Why merged: the boot trace now lists XMem physical page requests, with sanitized input.
Why it's good: security-reviewed; on main 1c93c86: boot_trace tests 33 -> 37 (5 of the new tests fail without the fix); repo-consistency set 563/563, 0 failures.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 03:52:12 -05:00
cb36902743 Merge pull request #437 from bobcatchris/exe-sha-preflight
Why merged: adds a read-only, standard-library-only check that a contributor's executable matches the recorded size and SHA-256 (no hashes of the game embedded; nothing downloaded).
Why it's good: security-reviewed; tested on Windows 11 + RTX 4070 SUPER on main 1c93c86: clean merge, exe_sha tests 9 -> 20 passed; the repo-consistency set stays 563/563 with 0 failures.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 03:51:57 -05:00
9cc72fde64 docs: fix GPU result submission instructions 2026-11-24 09:48:15 +02:00
7fb8d37289 gpu-test-results: Apple M5 Pro (MoltenVK 1.4.2, macOS 26.7.3) at d42773d07 (GPU-M5PRO) 2026-11-24 10:42:14 +03:00
51639a60f2 Merge pull request #440 from oddmaniv/docs/gameinput-host-diagnostics
Why merged: an 8-line docs note telling native GameInput host failures apart, worded cautiously.
Why it's good: no game data; docs tests and check_no_game_data pass on main d42773d plus this PR.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:40:41 -05:00
a2e85b6e8d Merge pull request #436 from luckyteagirl/codex/doc-index-gpu-results
Why merged: a one-line docs index link to the GPU test results page.
Why it's good: the link target exists; docs tests (links, encoding, tables, i18n) and check_no_game_data pass on main d42773d plus this PR.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 02:40:26 -05:00
57ae634cdb docs/testing.md: the cs_dpp_ops MoltenVK 1.4.2 row is fixed in the translator (SHADER-529)
The Known problems row still sent Mac users to MoltenVK main or KosmicKrisp.
Since #3227 the DPP lowering stores its ballot and shuffle to variables of
their own, and the MSL MoltenVK 1.4.2 generates from current main runs both
as statements in every lane. The row now says so, and that a pass on a Mac
does not prove it: an Apple M5 Pro gives the right words with 1.4.2 even
when the ballot sits on the right of &&.
2026-11-24 08:32:34 +01:00
0163aa3251 Merge pull request #467 from EdenBendheim/ubiq/opus-tags-duplicate-headers
Why merged: repeated tagging columns in either CSV are refused (exit 2) before any Ogg file is modified, and the docs say so.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 3 new tests (11 subtest failures on main), all passing on the merge. The one remaining failure, test_cli_reports_incomplete_directory_discovery (a Windows path repr), fails the same way on main.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:58:29 -05:00
63250e6c6a Merge pull request #378 from lines9686-rgb/build-refuse-percent-path
Why merged: the build scripts now refuse a checkout or -Temp folder whose path contains '%' up front, instead of failing later in confusing ways; the reviewer nit (a relative -Temp) was fixed in 2a4f650.
Why it's good: security-reviewed (only path guards and a test: no URLs, downloads, elevation or policy changes). Tested on Windows 11 (RTX 4070 SUPER) merged onto main 8f481cf: build_llvm_mc/build_runtime tests 14 passed on main -> 17 passed with this PR; compileall clean; in Windows PowerShell 5.1 a path with '%' and '-Temp a%b' are refused while normal paths pass the guard. The earlier CI failures (macos/linux-gpu-tools MoltenVK shader tests) are unrelated to these scripts.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:32:15 -05:00
1740e093c9 shaders: index DXBC identities for Xbox native graphics pipelines
Generate a deterministic hash-to-stage catalog alongside the translated shaders. Backfill an existing translation without disassembling it again, reject conflicting identities, and atomically replace a complete catalog.

Adapted from the GPL native stage index by enx, with the Xbox layout measurements by LooperSalty and KkelebekK.

Adapted-from: 5c175db901
2026-11-24 14:25:53 +08:00
d743662615 docs: document the presentation slot routes and their env variables
LEONIDA_XS_FRAME_STATISTICS_SLOT, LEONIDA_XS_PRESENT_X_SLOT,
LEONIDA_XS_SUSPEND_X_SLOT and LEONIDA_XS_RESUME_X_SLOT were read by the code
and named in no document (tests/test_docs_env_vars.py failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 03:12:53 -03:00
a02134a9c6 lifecycle: hook only the title window, end through ExitProcess, fix unregister race
- Only the title's first top-level window (no parent, not WS_CHILD, not
  WS_EX_TOOLWINDOW) is fitted to the work area and gets the SC_CLOSE hook;
  WM_NCDESTROY releases the claim. Other windows the title creates are left
  alone instead of ending the process on close.
- The suspend thread and the 1 s deadline end the run through the title's own
  ExitProcess shim (process.cpp end_run), so the host finishes its cleanup,
  instead of TerminateProcess.
- Suspend callbacks run under the (now recursive) registration lock and each
  id is looked up again before its call, so a routine never runs after
  UnregisterAppStateChangeNotification returned, and an unregister from inside
  a callback works.
- docs/runtime_imports.md: speech, XLauncher and XAppCapture text matches the
  code; new lifecycle shim paragraph.
- lifecycle_test: unregister-from-callback and title-window claim checks.

AI-assisted. Tested: lifecycle_test (29 checks), xgameruntime_offline_test
(69 checks), docs and gdk_runtime_calls pytest; clang 23 / mingw x64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 03:00:33 -03:00
d85e326eb7 opus_tags: reject duplicate CSV headers used for tagging 2026-11-24 00:46:14 -05:00
d7cdfcf255 ws2_offline: per-socket extension pointers, refuse name-service lookups, close connect-by-name and octal bypasses, cover wsock32
Review fixes for #357:
- ConnectEx / WSASendMsg wrappers ask the host for the pointer of the socket they run on, instead of one
  process-wide pointer that the last WSAIoctl on any provider overwrote.
- WSALookupServiceBeginA/W fail with WSASERVICE_NOT_FOUND.
- WSAConnectByNameA/W hand the host the literal 127.0.0.1 for "localhost", so the hosts file is never read.
- A dotted octet with a leading zero (0127.0.0.1) is refused: Windows reads it as octal.
- wsock32.dll maps bind/connect/sendto/gethostby*/WSAAsyncGetHostBy* (names and ordinals) to the same wrappers and
  stays host-owned in owns_dll, like ws2_32.dll.
- docs/runtime_imports.md no longer says a --run can open real sockets; it names the dnsapi.dll gap.

Tested: ws2_offline_test built with clang 23 (msys2 clang64) on Windows: 52 checks, 0 failures. MSVC build not
available locally; CI covers it. tests/test_docs_*.py, test_text_write_line_endings.py, test_runtime_paths.py pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 02:42:07 -03:00
45c99d977c boot_trace: show XMem physical page requests 2026-11-24 00:37:54 -05:00
7f7a596856 Merge remote-tracking branch 'ubiq/main' into feat/ws2-offline-shim
# Conflicts:
#	scripts/build_runtime.ps1
2026-11-24 02:34:35 -03:00
929ec5f255 docs: link GPU test results from the documentation index 2026-11-23 21:18:03 -08:00
49c81019c7 exe_sha: one command that says whether your copy is the file the notes were written against
Contributors run the tools in `tools/` against their own copy of the game, and nothing checks that the copies are the
same file. A truncated or patched image still reports as "Executable found", and every RVA a note quotes is quietly
measured on something else (#8041).

`tools/exe_sha.py` prints the size and SHA-256 of the image it is given and compares them with the numbers the package
manifest records (`expected_exe_size`, `expected_exe_sha256`, both optional, read from the `game/*.json` whose
`expected_exe` names the file), or with `--expect SHA256` when a hash is quoted directly. It exits 1 on a mismatch and
0 when the numbers match or nothing is recorded, checks the size before hashing so a truncated 120 MB copy is reported
without reading it all, and `--print-keys` emits the two manifest lines for the file in hand. `--json` gives a script
the same numbers. `docs/design.md`'s "Day one" list now starts with it.

Measured on the retail Xbox 1.0.2.1 package: 120,181,760 bytes and sha256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993, the same pair #7123 records for the build preflight; that PR and this one are
the two halves of #8041.

Tests: `python -I tests/test_exe_sha.py` 11 OK (match, wrong hash, wrong size, manifest without the keys, `--expect`
both ways, a non-hash `--expect`, `--json`, `--print-keys`, a missing file, and the repository's own manifest).
`tests/test_docs_cli_flags.py` and `tests/test_docs_links.py` each have one failure that is already on `main`
(`docs/embedded_shaders.md`'s pass flags, `docs/dev-tools.md`'s `../runtime/README` link); the lists are identical
before and after this change. No game files or game-derived bytes in the diff.

AI-assisted.
2026-11-23 23:17:22 -06:00
31e2ad84c1 docs: distinguish native GameInput host failures (DOC-GAMEINPUT-HOST-DIAG) 2026-11-24 16:17:08 +11:00
5dbd92b92d build scripts: refuse a folder with % in its path up front
cmd.exe expands %...% on every line of the generated _build.cmd (twice on a CALL line), and cl.exe rejects a % in the
path-valued /D definitions of the runtime's test targets (D8038) however it is quoted, so a checkout with % in its path
failed in configure, or a few hundred Ninja steps in once the batch was escaped (@ezbyDev's measurements in the original repository).
build_runtime.ps1 now stops before looking for Visual Studio when the checkout path has a %, and build_llvm_mc.ps1 when
-Temp has one, each naming the folder; docs/testing.md gets a Known-problems row. tests/test_build_percent_path.py runs
both scripts with such a path, with git, python and vswhere hidden so that a missing check can't start a real build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:09:02 +03:00
91575fda3a d3d12_xs: device slots 25/26 take the title's C-ABI struct return
The retail executable calls GetCustomHeapProperties (device slot 26) with the
C convention: the hidden return buffer in RCX and the device in RDX. The
proxy's generic forwarder assumed the PC C++ form (this in RCX, buffer in
RDX), took the buffer for the device and crashed on its vtable right after
D3D12XboxCreateDevice.

Slots 25 (GetResourceAllocationInfo, same rule, inferred) and 26 (measured)
now get thunks that accept either form: whichever of the first two arguments
is the device proxy is `this`. The runtime's own code still calls the proxy
through d3d12.h in the PC form. device_proxy_test calls both slots in both
forms against WARP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5dbc30bed7)

Adapted to main by Mumogg: slot 26 keeps the thunk it already has (86b8e04e4), so of this commit's two thunks
only slot 25's is installed.
2026-11-23 21:54:29 -06:00
9b59db02f9 ws2_offline: add offline loopback-only Winsock2 (ws2_32.dll) shim (RT-WS2-OFFLINE) 2026-11-24 00:53:14 -03:00