tests: launch the draw and scene guests with PC command lists (TEST-GUEST-DRAW-LIST-ABI) #1541

Open
github-bot wants to merge 1 commit from github-bot/gh-1541 into main AGit
Owner

@⁠Rain156 on GitHub · 2026-11-25 03:56 UTC · original
Rain156:rain/guest-draw-list-abi → main · +5 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: TEST-GUEST-DRAW-LIST-ABI. Claim

Depends on: #984 (merged).

What and why

Both render launchers run tiny_guest_draw.exe, built against the Windows SDK. On current main they start the loader with its default Xbox command-list method order. The first frame calls the wrong methods and Close() returns E_INVALIDARG. The native in-process draw already selects the matching interface.

Set the existing LEONIDA_D3D12_LISTS=pc in the CMake single-draw launcher and in the child environment of the Python scene runner. This scopes the setting to the fixture process and records it in the Python run report.

Tested

Windows 11 x64, MSVC RelWithDebInfo, NVIDIA GeForce RTX 5070 Ti, driver 617.42, main bfef489cb. All scene inputs are synthetic.

  • Before the change, CTests d3d12_translated_draw_guest and d3d12_guest_scene both failed on frame 1 when the fixture closed its list. Supplying the matching ABI in the parent made both pass.
  • Ran both updated launchers with the parent explicitly requesting the console list order. The single draw passed its 4,096-pixel check. The scene completed all 600 frames, reproduced the saved run on resume, and rejected both a corrupted scene and a corrupted checkpoint. The frame-chain digest was 424a0ed99442a42a.
  • The six guest-scene reference tests and the changed-file game-data check passed. The translator suite on the shared base passed all 6,279 tests in 487 files.

AI-assisted: Yes (Codex).

The claim linked above was posted before this PR. Issue #14 reached GitHub's 2,500-comment limit before the completion notice could be posted.

**@⁠Rain156** on GitHub · 2026-11-25 03:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1541) `Rain156:rain/guest-draw-list-abi` → `main` · +5 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: TEST-GUEST-DRAW-LIST-ABI. [Claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Depends on: #984 (merged). ### What and why Both render launchers run `tiny_guest_draw.exe`, built against the Windows SDK. On current main they start the loader with its default Xbox command-list method order. The first frame calls the wrong methods and `Close()` returns `E_INVALIDARG`. The native in-process draw already selects the matching interface. Set the existing `LEONIDA_D3D12_LISTS=pc` in the CMake single-draw launcher and in the child environment of the Python scene runner. This scopes the setting to the fixture process and records it in the Python run report. ### Tested Windows 11 x64, MSVC RelWithDebInfo, NVIDIA GeForce RTX 5070 Ti, driver 617.42, main `bfef489cb`. All scene inputs are synthetic. - Before the change, CTests `d3d12_translated_draw_guest` and `d3d12_guest_scene` both failed on frame 1 when the fixture closed its list. Supplying the matching ABI in the parent made both pass. - Ran both updated launchers with the parent explicitly requesting the console list order. The single draw passed its 4,096-pixel check. The scene completed all 600 frames, reproduced the saved run on resume, and rejected both a corrupted scene and a corrupted checkpoint. The frame-chain digest was `424a0ed99442a42a`. - The six guest-scene reference tests and the changed-file game-data check passed. The translator suite on the shared base passed all 6,279 tests in 487 files. AI-assisted: Yes (Codex). The claim linked above was posted before this PR. Issue #14 reached GitHub's 2,500-comment limit before the completion notice could be posted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:55:55 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 15:38 UTC · original

Reviewed 6824246: this is a code-reading review; I could not execute the guest draw here (no MSVC/Vulkan GPU/cmake). I confirmed the shim side (unset LEONIDA_D3D12_LISTS wraps lists in the console vtable) and that the guest is compiled against the Windows SDK headers, so both launchers need pc lists, the same fix check_tiny_frame.py already has on main. run_guest_scene.py imports and arg-parses identically before/after (--help 0, no-args 2). One follow-up: runtime/README.md's guest-draw Wine example still lacks LEONIDA_D3D12_LISTS=pc.

AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 15:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1541#issuecomment-7167157840) Reviewed 6824246: this is a code-reading review; I could not execute the guest draw here (no MSVC/Vulkan GPU/cmake). I confirmed the shim side (unset LEONIDA_D3D12_LISTS wraps lists in the console vtable) and that the guest is compiled against the Windows SDK headers, so both launchers need pc lists, the same fix check_tiny_frame.py already has on main. run_guest_scene.py imports and arg-parses identically before/after (--help 0, no-args 2). One follow-up: runtime/README.md's guest-draw Wine example still lacks LEONIDA_D3D12_LISTS=pc. AI-assisted review. **Recommendation:** Merge
Author
Owner

@⁠plamea on GitHub · 2026-11-26 15:56 UTC · original

Reproduced on Windows 11 (build 26300), RTX 3050 Laptop GPU (4 GiB), NVIDIA 621.24, MSVC RelWithDebInfo, SDL 3.4.20, main fbf100b1b.

  • Unmodified d3d12_translated_draw_guest and d3d12_guest_scene failed at the first command list's Close(). run_tiny_first_run_ui and the in-process d3d12_translated_draw passed.
  • With the two launcher changes from 6824246d applied to fbf100b1b and the parent shell explicitly set to LEONIDA_D3D12_LISTS=console, the single-frame launcher passed its pixel checks. The headless scene runner passed all 600 frames, save/resume equivalence, and both negative controls. Its report recorded LEONIDA_D3D12_LISTS=pc in all five child runs.

All inputs for these tests were synthetic. AI-assisted (Codex).

**@⁠plamea** on GitHub · 2026-11-26 15:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1541#issuecomment-7196949936) Reproduced on Windows 11 (build 26300), RTX 3050 Laptop GPU (4 GiB), NVIDIA 621.24, MSVC RelWithDebInfo, SDL 3.4.20, `main` `fbf100b1b`. - Unmodified `d3d12_translated_draw_guest` and `d3d12_guest_scene` failed at the first command list's `Close()`. `run_tiny_first_run_ui` and the in-process `d3d12_translated_draw` passed. - With the two launcher changes from `6824246d` applied to `fbf100b1b` and the parent shell explicitly set to `LEONIDA_D3D12_LISTS=console`, the single-frame launcher passed its pixel checks. The headless scene runner passed all 600 frames, save/resume equivalence, and both negative controls. Its report recorded `LEONIDA_D3D12_LISTS=pc` in all five child runs. All inputs for these tests were synthetic. AI-assisted (Codex).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1541/head:github-bot/gh-1541'
git switch 'github-bot/gh-1541'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1541'
git switch 'github-bot/gh-1541'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1541'
git switch 'github-bot/gh-1541'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1541'
git switch 'main'
git merge --squash 'github-bot/gh-1541'
git switch 'main'
git merge --ff-only 'github-bot/gh-1541'
git switch 'main'
git merge 'github-bot/gh-1541'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.