mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #496] d3d12: a pipeline stream the PC numbering cannot read is read with the console's, its 24 the mesh shader (D3D-CONSOLE-STREAM-ENUM) #545
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#545
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/496
Author: @Kokonotcu
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:pr/console-stream-enum📝 Commits (1)
30dd1a4d3d12: a pipeline stream the PC numbering cannot read is read with the console's (its 24 is the mesh shader)📊 Changes
2 files changed (+69 additions, -2 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+41 -2)📝
runtime/test/d3d12_mesh_test.cpp(+28 -0)📄 Description
Claim: D3D-CONSOLE-STREAM-ENUM (#14).
What was wrong: the console's pipeline-state subobject enum has no gap at 23, where the PC's has one. The PC numbering is VIEW_INSTANCING 22, AS 24, MS 25, DEPTH_STENCIL2 26, and so on. As a result, the title's mesh-shader subobject is 24, which the PC reading takes for an amplification shader. The layer refuses an AS, so those PSOs fail as unsupported.
docs/retail_boot_intel_host.mdsection 3 measured this in a retail boot: 430 such PSOs were refused, and each one's 24 carried a payload the size of one of the title's mesh-shader containers (430 of 430; 280 of those sizes match no vertex shader, against the VS reading proposed on the old repository's issue 8815). The translator makes 9,282 of the title's 26,503 shaders mesh shaders.What changed:
CreatePipelineStatereads a stream again with the console numbering (a type from 23 on is the PC type one above it) when either:It takes the console reading only when that reading holds an MS and no AS. A stream the PC reading accepts is never read differently, so no PSO that builds today changes.
LEONIDA_XS_STREAM_ENUM=pcturns it off. The first renumbered stream is logged once.What this assumes beyond the measurement: that the console shifts every type from 23 on, not only the mesh shader. Only 24 is measured. The shift of 25 and up is the reading under which a 24 = MS is consistent; it is used only for streams that fail today anyway.
Tests (
d3d12_mesh_test, new checks):Tested on Windows 10, i7-11800H, RTX 3080 Laptop (NVIDIA driver), on
main8f481cf16:d3d12_meshpasses. Not yet tested on a retail boot.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.