mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1818] d3d12: support console-numbered PSO streams in on-demand prepare path #1830
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#1830
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/1818
Author: @JesusACD
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/ondemand-console-stream📝 Commits (1)
05626b3d3d12: handle console PSO streams in on-demand prepare path📊 Changes
4 files changed (+133 additions, -33 deletions)
View changed files
📝
runtime/CMakeLists.txt(+3 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+91 -23)📝
runtime/shims/d3d12_xs_device.cpp(+13 -6)📝
runtime/test/d3d12_mesh_test.cpp(+26 -4)📄 Description
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161618257 (RT-ONDEMAND-CONSOLE-STREAM)
What and why
Under LEONIDA_PIPELINE_COMPILE=on-demand (info.prepare_on_bind == true, the boot profile's compilation mode), set_device_outer routes Xbox device slots 86 (CreatePipelineState) and 55 (CreateDerivedPipelineState) through Device::prepare_console_stream instead of ID3D12Device2::CreatePipelineState.
Device::prepare_console_stream (
untime/shims/d3d12_vulkan_device.cpp) previously parsed streams only with PC subobject numbering and captured PsoStreamRecord with console = false:
Changes:
untime/shims/d3d12_xs_device.cpp).
untime/test/d3d12_mesh_test.cpp, assert slot-86 refusals without VK_EXT_mesh_shader and for pre-
oot_window mesh shaders, and register d3d12_mesh_on_demand (ENVIRONMENT LEONIDA_PIPELINE_COMPILE=on-demand, SKIP_RETURN_CODE 77) in
untime/CMakeLists.txt.
Also checked git merge-tree against open PR #1695's hunks in d3d12_vulkan_device.cpp and d3d12_mesh_test.cpp: both files auto-merge cleanly without conflict.
Tested
untime-windows with MSVC (RelWithDebInfo, /W4 /permissive- /utf-8) via GitHub Actions (JesusACD/leonida run 45609322341; 416/417 non-skipped CPU CTest cases passed on the GPU-less runner, with d3d12_mesh and d3d12_mesh_on_demand cleanly skipping via code 77, and the sole runner failure being the pre-existing k_xdxr_postbuild_readback addressed in #1418).
untime-windows artifact:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.