mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1854] build_runtime.ps1: link d3d12_xs_pso_stream.cpp into root_sig_test and device_proxy_test (BUILD-FALLBACK-PSO-STREAM) #1867
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1867
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1854
Author: @ambroseautomation
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/build-fallback-pso-stream📝 Commits (1)
7bf1dbebuild_runtime.ps1: link d3d12_xs_pso_stream.cpp into root_sig_test and device_proxy_test (BUILD-FALLBACK-PSO-STREAM)📊 Changes
2 files changed (+27 additions, -2 deletions)
View changed files
📝
scripts/build_runtime.ps1(+2 -2)📝
tests/test_build_runtime_fallback.py(+25 -0)📄 Description
Claimed in the coordination issue as: BUILD-FALLBACK-PSO-STREAM (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163342978)
What and why
On current
main(98c2f7777), runningscripts/build_runtime.ps1on a Windows host without CMake/Ninja (thecl.exefallback path) fails to linkroot_sig_test.exewith 6LNK2019unresolved external symbols (PsoStreamRecord::capture,PsoStreamRecord::derived,derive_stream,attach_pso_record,find_pso_record,~PsoStreamRecord), anddevice_proxy_test.exehas the same omission.Root cause:
runtime/shims/d3d12_xs_device.cppdepends onruntime/shims/d3d12_xs_pso_stream.cpp. Bothruntime/CMakeLists.txt(lines 241-272) and thegta6rt.exe$fileslist inscripts/build_runtime.ps1includeshims/d3d12_xs_pso_stream.cpp, but the twocl.exefallback lines forroot_sig_test.exeanddevice_proxy_test.exeomitted it, andtests/test_build_runtime_fallback.pyonly cross-checkedgta6rt's source list againstruntime/CMakeLists.txt.Implementation summary:
"$src\shims\d3d12_xs_pso_stream.cpp"to theroot_sig_test.exeanddevice_proxy_test.execl.execommands inscripts/build_runtime.ps1.test_every_non_vulkan_fallback_target_compiles_every_source_cmake_gives_itintests/test_build_runtime_fallback.pycheckinggta6rt_tls_host,root_sig_test,device_proxy_test,descriptor_table_test, andcommand_list_testagainstruntime/CMakeLists.txt.Tested
Before (clean
main98c2f7777):.\scripts\build_runtime.ps1 -jobs 12→ FAIL (exit 1):root_sig_test.exe : fatal error LNK1120: 6 unresolved externals(PsoStreamRecord/derive_stream/attach_pso_record/find_pso_record).After (Windows 11, MSVC 14.51.36231 / Visual Studio 18,
cl.exefallback path):.\scripts\build_runtime.ps1 -jobs 12→ PASS (exit 0; builtbcpack_history_train.exe,gta6rt.exe,gta6rt_tls_host.dll,root_sig_test.exe,device_proxy_test.exe,descriptor_table_test.exe,command_list_test.exe)..\runtime\build\root_sig_test.exe→ PASS (exit 0)..\runtime\build\device_proxy_test.exe→device_proxy_test: OK (0 failures)(exit 0)..\runtime\build\descriptor_table_test.exe→descriptor_table_test: all tests passed (0 failures)(exit 0)..\runtime\build\command_list_test.exe→ PASS (exit 0).python -I tests/test_build_runtime_fallback.py -v→ 11 tests OK.python -I tests/test_text_write_line_endings.py→ 3 tests OK.python -I scripts/check_no_game_data.py scripts/build_runtime.ps1 tests/test_build_runtime_fallback.py→ exit 0 (clean).GPUs tested: NVIDIA GeForce RTX 2060 with Max-Q Design (driver 621.40, Windows 11) —
device_proxy_test.exeran on the local D3D12 WARP/host runtime; no game files used.AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — build script and test only)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.