Repository navigation
d3d12: take console subobject types 24/23 as VS/HS in streams without MS - #8815
LooperSalty wants to merge 1 commit into
Conversation
Slot 86 pipeline streams carry the console VS as subobject type 24 and the HS as 23 (read statically by TreXito, Leonida#8186). parse_pipeline_stream took 24 as an amplification shader and refused 23 as an unknown type, so create_graphics refused those PSOs. A stream with no MS subobject has no mesh stage, so there 24 is taken as the VS and 23 as the HS, when those slots are empty. A stream with MS keeps the mesh path unchanged: 24 stays an AS (refused), 23 is an unknown type. The remap is logged once. The HS is not built yet, so a stream with 23 is E_NOTIMPL, not created. Tests: d3d12_mesh covers 24 alone (created), 24+23 and 23 with a VS (E_NOTIMPL), and 24 with a real VS (not remapped, E_NOTIMPL). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwHrL5Lxc1rum25b6tnpo8
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Verified on Windows 11.
- Excellent resolution for retail console graphics pipeline streams (slot 86):
- In streams lacking a Mesh Shader (MS) subobject, cleanly remaps console subobject type 24 → VS and 23 → HS into vacant slots.
- Streams containing MS preserve the mesh pipeline path intact (type 24 remaining AS).
- Unblocks retail PSO creation across thousands of graphics shaders that previously failed with unrecognised subobject types.
- Regression tests in \d3d12_mesh_test\ cover standalone type 24, combinations with HS, and negative controls.
- Clean-room check and \git diff --check\ pass.
LGTM!
|
Tested
|
|
Verified head
AI-assisted. |
|
Correction of the measurement in the description. The "602 → 219" figure compared two different local stacks. Re-measured with this exact commit (
The remaining 219 have other causes (e.g. depth-bounds, subobject 21), not looked into here. Both runs end in the same unrelated host AV (null write, caller |
|
Independent Windows + RTX 5080 GPU verification of Build & Tests
Code check
(AI-assisted) |
Claimed in: #8504 (comment)
Depends on: none
What and why
Slot 86 pipeline streams carry the console VS as subobject type 24 and the HS as type 23 (read statically by @TreXito in #8186: when the VS object carries a certain pair of flag bits, the title writes the VS position as 24, and the HS position as 23 if an HS exists).
parse_pipeline_streamtook 24 as an amplification shader and refused 23 as an unknown type, socreate_graphicsrefused those PSOs.map_console_stages, after the parse loop).create_graphics), 23 stays an unknown type (E_INVALIDARG). A slot already holding a real VS or HS keeps the old behaviour too.Thanks @TreXito for the static reading in #8186.
Tested
Windows 11 26300, RTX 4070 SUPER (driver 610.88), MSVC RelWithDebInfo, base main
867d922f.d3d12_mesh_test, new cases placed before the mesh-extension early return so they run withoutVK_EXT_mesh_shader: 24 alone → PSO created; 24 + 23 →E_NOTIMPL(HS not built, see Limits); 23 with a real VS → refused; 24 with a real VS → not remapped. The new "24 alone" case failed before the change (line 202) and passes now. The existing MS cases (23 →E_INVALIDARG, AS + MS →E_NOTIMPL) are unchanged.d3d12_vulkan_device,d3d12_depth_resolve,d3d12_indirect_rt, which also fail on maindde82f27on this machine (main867d922fnot re-run).dde82f27+ the open boot-path PRs): at least 2,048 graphics PSOs in 150 s arrive with type 24, no VS and no MS (PS present, triangle topology). With this exact commit on the same local stack: refusedCreatePipelineState3,140 → 219, created 54,282 → 57,203 (2,921 more), out of 57,423 calls in both runs; remap logged once. See the measurement comment below (an earlier "602 → 219" compared two different stacks).Limits
create_graphicsrefuses HS withE_NOTIMPL), so 24 + 23 streams stay refused; the remaining refusals are expected from that.parse_pipeline_stream; whichever lands second needs a rebase.Slot numbers and counts only, no game data. AI-assisted (Claude Code).
cc @ItsNotRexed