mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #2292] d3d12: the deferred path reads console streams with the console's numbering (CONSOLE-STREAM-ON-DEMAND-REREAD) #2296
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#2296
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/2292
Author: @star41905453-coder
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:console-stream-on-demand📝 Commits (1)
74cad38d3d12: the deferred path reads console streams with the console's numbering (CONSOLE-STREAM-ON-DEMAND-REREAD)📊 Changes
2 files changed (+49 additions, -23 deletions)
View changed files
📝
runtime/CMakeLists.txt(+5 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+44 -23)📄 Description
With
LEONIDA_PIPELINE_COMPILE=on-demandevery PSO from a console-numbered stream is refused, and this is the switch a title with console PSOs needs.prepare_console_stream— the deferred entry point XboxCreatePipelineStateuses when a device prepares PSOs on bind — parsed the stream with PC numbering and returned before the console re-read that the eager path does, so a console type 24 arrived as an AS and answeredE_NOTIMPL. The record capture right after had the same fault one level down: it walked the stream as a PC one, found no console subobject and gaveE_INVALIDARG— the case the rasterizer subobject ind3d12_mesh_testhits.What changes:
parse_console_or_pc_stream, used by both entry points. The deferred one is handed console streams, so it reads console-first and falls back to the PC reading; the eager one keeps its existing PC-first rule, so a stream the PC reading accepts is never read differently.Out of scope but worth knowing:
on-demandalso exercises the depth-bounds extras path, so this and #2234 meet.Test — the existing console-stream step of
d3d12_mesh_testnow also runs under the switch, asd3d12_mesh_on_demand(new ctest). Onmainit stops atSUCCEEDED(console_hr)with the refusal; with this it passes, both console streams created, and the derived PSO through slot 55 still works.Run:
d3d12_meshandd3d12_mesh_on_demandboth pass here; the wider group (write_back,title_va,geometry_views,compute) passes.Item: CONSOLE-STREAM-ON-DEMAND-REREAD, claimed in #1608.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.