ci(runtime): build the GameInput shim into the windows artifact (CI-RUNTIME-SDL3-ARTIFACT) #1641

Closed
github-bot wants to merge 1 commit from github-bot/gh-1641 into main AGit
Owner

@⁠slauko on GitHub · 2026-11-25 06:49 UTC · original
ci-sdl3-artifact → main · +1 −0 · 1 files · 1 commits · closed without merging

Claimed in the coordination issue as: CI-RUNTIME-SDL3-ARTIFACT.

What and why

The runtime-windows artifact builds without SDL3 unless the Windows Configure step passes -DLEONIDA_SDL3_FETCH=ON. On a Windows host the installed GameInput.dll masks this (docs/gameinput.md's fallback path); on Wine there is no such DLL, so the retail executable stops at GameInputCreate before any D3D12 call. One line in the Windows Configure puts the GameInput shim (the pinned SDL3 3.4.20, gamepad-only, static) into every artifact.

No behaviour change for Windows hosts: an installed SDL3 is still preferred, and the pinned release is fetched only when none is found.

Tested

On the fork (RTX 3080 Ti, NVIDIA 595.112.07, Wine 11.17, retail 1.0.2.1 package, LEONIDA_D3D12=vulkan):

  • artifact built without the flag: --run stops at the title's GameInputCreate assert, 0 D3D12 calls;
  • artifact built with the flag: SDL 3.4.20 gamepads, the Xbox Series X pad is recognized (045e:0b12, player 1), and the boot proceeds (1,639 D3D12 calls before the next stop). Counts and call shapes only, no game data.

The build itself needs no game files; the boot check uses the retail package. The artifact grows by the shim (observed on the fork: ~5.7 MB to ~9 MB).

AI-assisted: yes.

**@⁠slauko** on GitHub · 2026-11-25 06:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1641) `ci-sdl3-artifact` → `main` · +1 −0 · 1 files · 1 commits · closed without merging Claimed in the coordination issue as: CI-RUNTIME-SDL3-ARTIFACT. ### What and why The `runtime-windows` artifact builds **without SDL3** unless the Windows `Configure` step passes `-DLEONIDA_SDL3_FETCH=ON`. On a Windows host the installed `GameInput.dll` masks this (`docs/gameinput.md`'s fallback path); on Wine there is no such DLL, so the retail executable stops at `GameInputCreate` before any D3D12 call. One line in the Windows Configure puts the GameInput shim (the pinned SDL3 3.4.20, gamepad-only, static) into every artifact. No behaviour change for Windows hosts: an installed SDL3 is still preferred, and the pinned release is fetched only when none is found. ### Tested On the fork (RTX 3080 Ti, NVIDIA 595.112.07, Wine 11.17, retail 1.0.2.1 package, `LEONIDA_D3D12=vulkan`): - artifact built without the flag: `--run` stops at the title's `GameInputCreate` assert, 0 D3D12 calls; - artifact built with the flag: `SDL 3.4.20 gamepads`, the Xbox Series X pad is recognized (`045e:0b12, player 1`), and the boot proceeds (1,639 D3D12 calls before the next stop). Counts and call shapes only, no game data. The build itself needs no game files; the boot check uses the retail package. The artifact grows by the shim (observed on the fork: ~5.7 MB to ~9 MB). AI-assisted: yes.
Re-applied after the rebase onto current main: upstream's windows
artifact still builds without SDL3 (Windows hosts mask the GameInput
gap with their own GameInput.dll), so a Wine-side boot of the retail
exe stops at GameInputCreate again. -DLEONIDA_SDL3_FETCH=ON in the
windows Configure puts the shim back into the artifact.

(cherry picked from commit b8e0fe658a9b72794fa708d771b65862748438c0)
(cherry picked from commit 149adbdb97faf33dd1b51ed510db750e677c1a16)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:59:07 +00:00
Author
Owner

@⁠slauko on GitHub · 2026-11-25 07:49 UTC · original

Current-main confirmation: the flag is the difference

Artifact from fork run 45569356396 (head f81cf9092 = main 42537e7b6 + this one line; Windows build). Retail boot under Wine 11.17, RTX 3080 Ti (NVIDIA 595.112.07), retail 1.0.2.1:

  • [rt] gameinput: SDL 3.4.20 gamepads
  • [rt] gameinput: connected Xbox Series X Controller (045e:0b12, player 1)
  • then 129,459 D3D12 calls and 1,472 presents before the next stop (a placed D16S8 depth refusal, #588).

An artifact built without the line stops at GameInputCreate with 0 D3D12 calls. This is the current-main evidence for the PR. Counts and call shapes only, no game data. AI-assisted.

**@⁠slauko** on GitHub · 2026-11-25 07:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1641#issuecomment-7156293235) **Current-main confirmation: the flag is the difference** Artifact from fork run `45569356396` (head `f81cf9092` = `main` `42537e7b6` + this one line; Windows build). Retail boot under Wine 11.17, RTX 3080 Ti (NVIDIA 595.112.07), retail 1.0.2.1: - `[rt] gameinput: SDL 3.4.20 gamepads` - `[rt] gameinput: connected Xbox Series X Controller (045e:0b12, player 1)` - then **129,459 D3D12 calls and 1,472 presents** before the next stop (a placed D16S8 depth refusal, #588). An artifact built without the line stops at `GameInputCreate` with 0 D3D12 calls. This is the current-main evidence for the PR. Counts and call shapes only, no game data. AI-assisted.
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 11:25 UTC · original

Independent verification: the one-line -DLEONIDA_SDL3_FETCH=ON in the windows job configure is correct — CMakeLists fetches pinned SDL3 3.4.20 (SHA256-pinned FetchContent, static gamepad-only) into gta6rt via gameinput.cpp; installed SDL3 still preferred so no behavior change on dev hosts. yaml.safe_load OK; test_no_game_data_workflow.py 3/3; the test_runtime_paths.py conformance-path failure reproduces identically on origin/main (pre-existing, fixed by #1673). AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 11:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1641#issuecomment-7161026353) Independent verification: the one-line `-DLEONIDA_SDL3_FETCH=ON` in the windows job configure is correct — CMakeLists fetches pinned SDL3 3.4.20 (SHA256-pinned FetchContent, static gamepad-only) into gta6rt via gameinput.cpp; installed SDL3 still preferred so no behavior change on dev hosts. yaml.safe_load OK; `test_no_game_data_workflow.py` 3/3; the `test_runtime_paths.py` conformance-path failure reproduces identically on origin/main (pre-existing, fixed by #1673). AI-assisted verification.
github-bot closed this pull request 2026-11-27 11:37:13 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.