tests: launch the draw and scene guests with PC command lists (TEST-GUEST-DRAW-LIST-ABI) #1541
Closed
github-bot
wants to merge 1 commit from
github-bot/gh-1541 into main
AGit
pull from: github-bot/gh-1541
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1541
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1541"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Rain156 on GitHub · 2026-11-25 03:56 UTC · original
Rain156:rain/guest-draw-list-abi→main· +5 −1 · 2 files · 1 commits · closed without mergingClaimed 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 andClose()returnsE_INVALIDARG. The native in-process draw already selects the matching interface.Set the existing
LEONIDA_D3D12_LISTS=pcin 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.d3d12_translated_draw_guestandd3d12_guest_sceneboth failed on frame 1 when the fixture closed its list. Supplying the matching ABI in the parent made both pass.424a0ed99442a42a.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.
@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
@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,
mainfbf100b1b.d3d12_translated_draw_guestandd3d12_guest_scenefailed at the first command list'sClose().run_tiny_first_run_uiand the in-processd3d12_translated_drawpassed.6824246dapplied tofbf100b1band the parent shell explicitly set toLEONIDA_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 recordedLEONIDA_D3D12_LISTS=pcin all five child runs.All inputs for these tests were synthetic. AI-assisted (Codex).
@OreoFR on GitHub · 2026-11-28 21:52 UTC · original
Verified by OreoFR
3408969a7+ PR head6824246d9; green run in a merge package of 3 PRs, no new ctest failure vs mainpackage ctest; python -I tests/test_run_guest_scene.pyAI-assisted (Claude Code, Claude Opus 5.5).
@zmasi on GitHub · 2026-11-29 01:49 UTC · original
#1541 | head
6824246d9b(merged cleanly onto origin/main59e65849b0) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesIndependent Verification (Windows 11)
runtime/test/run_guest_draw.cmake(set(ENV{LEONIDA_D3D12_LISTS} pc)) andscripts/run_guest_scene.py("LEONIDA_D3D12_LISTS": "pc"inSession.run).python -I scripts/check_no_game_data.py runtime/test/run_guest_draw.cmake scripts/run_guest_scene.pypassed (rc=0).origin/main59e65849b0):scripts/run_guest_scene.py'sSession.run(...)omittedLEONIDA_D3D12_LISTS(None) from the launched process environment.#1541 + origin/main):Session.run(...)setsLEONIDA_D3D12_LISTS="pc"in both the child processenvand the recorded run metadata.python -I tests/test_run_guest_scene_wine.py->8 ran, OK (skipped=5)python -I tests/test_ctest_registration.py->7/7passed (OK).@Rain156 on GitHub · 2026-11-29 06:26 UTC · original
I don’t have time to continue working on this PR. If another contributor would like to take it over, please feel free. I’ll leave this PR open for reference.
@TheGeogeo on GitHub · 2026-11-29 14:17 UTC · original
Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 1 commit(s) not there, and 1 of the 5 lines it adds are already present. No duplicate found: its claimTEST-GUEST-DRAW-LIST-ABIappears in no other open pull request and in nomaincommit.AI-assisted (Claude Code).
@enlight3d on GitHub · 2026-11-29 15:51 UTC · original
RUN report for #1541 (TEST-GUEST-DRAW-LIST-ABI)
Heads: PR head
6824246d9, based onbfef489cb; origin/main91bab934d(merged locally withgit merge --no-ff, clean, 2 files).Scope: the PR changes only
runtime/test/run_guest_draw.cmakeandscripts/run_guest_scene.py, and adds no test. Its two consumers, CTestsd3d12_translated_draw_guestandd3d12_guest_scene, launchgta6rt --runwith the guest fixture. I did not run them (nogta6rtlaunch on this machine), so I cannot confirm the first-frameClose()failure or its fix here.What I ran instead (no loader, no GPU):
python -I -B tests/<file>fortest_guest_scene_reference.py,test_dev_guest_scene.py,test_dev_discovery.py,test_docs_cli_flags.py,test_docs_env_vars.py. All OK at the PR head and merged into main.scripts/run_guest_scene.py, callSession.runwithsubprocess.runmocked, check the child env and the run record. Child env and run record carryLEONIDA_D3D12_LISTS=pc.cmake -DGTA6RT=<stand-in .bat> -DGUEST=<empty file> -DFIXTURE=<synthetic folder with empty index/fssm files> -P runtime/test/run_guest_draw.cmake. The stand-in prints the marker and the factory line only whenLEONIDA_D3D12_LISTS=pcis in its environment, otherwise exits 3.Results:
bfef489cb; behavioural, env-propagation only): Python probe printsLEONIDA_D3D12_LISTS = None, exit 1; CMake probe fails (exit 1, stand-in saw nopc). The existing Python tests stay green in this state (they do not look at the variable).gta6rtplus the synthetic fixture; the red/green of the actual fixture is the author's.Machine: Windows 11 Pro x64, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (
python -I), CMake from VS 2022 Build Tools.@merzleckeier on GitHub · 2026-11-30 07:51 UTC · original
Both patched test starters in
6824246d9still work on currentmaine1fe82f63(clean merge tree3e6da1d73). MEASURED on CachyOS with Wine 11.22, static SDL 3.4.20, NVIDIA RTX 4070 SUPER (620.73.04) and AMD Radeon 610M/Raphael (RADV 26.3.1). The loader, guest, and synthetic shader pack were held fixed.run_guest_scene.pywith the launcher default aborted at the firstClose()withE_INVALIDARGon both GPUs.console: the merged Python runner recordedpcfor each child, passed the 600-frame pixel oracle, save/resume and both corruption controls on each GPU, and produced frame chain424a0ed99442a42a.pcfrom CMake. The native Vulkan shim and the exact-pixel marker both passed.This rechecks the test-only fix against the current loader. The fixture ran offline on synthetic input. AI-assisted with OpenAI Codex.
@aslan2142 on GitHub · 2026-12-01 17:23 UTC · original
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.Pull request closed