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

Closed
slauko wants to merge 1 commit from upstream-pr/1641 into main
slauko commented 2026-11-25 06:49:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by slauko on 2026-11-25T06:49:04Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5486619264 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1641). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T06:49:04Z. --- 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 commented 2026-11-25 07:49:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by slauko on 2026-11-25T07:49:29Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7156293235 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1641#issuecomment-7156293235). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T07:49:29Z. --- **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.
whoalin1 commented 2026-11-25 11:25:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T11:25:23Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7161026353 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1641#issuecomment-7161026353). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T11:25:23Z. --- 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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1641
No description provided.