tests: launch the draw and scene guests with PC command lists (TEST-GUEST-DRAW-LIST-ABI) #1541
Closed
leonida/mandy
Rain156 wants to merge 0 commits from
rain/guest-draw-list-abi into main
pull from: rain/guest-draw-list-abi
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!1541
Loading…
Reference in a new issue
No description provided.
Delete branch "rain/guest-draw-list-abi"
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?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
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 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.
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
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).
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).
#1541 | head 6824246d9b861954814b15905eae228065a9fb90 (merged cleanly onto origin/main 59e65849b0) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yes
Independent 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).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.
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).
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.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.
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.