Repository navigation
d3d12: take console subobject type 24 as the mesh shader in streams without MS - #8815
LooperSalty wants to merge 1 commit into
Conversation
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) |
|
Retail boot data for this PR (Windows 11, RTX 3060 Ti, NVIDIA 621.24, own 1.0.2.1 copy, local boot-chain stack with #7880 and frame-token adoption,
So when the type-24 program's FSSM is translated as Counts and stage names only. AI-assisted (Claude Code). |
|
Data point against the VS reading of type 24, from a retail boot with
Method, so anyone with a copy can repeat it: collect the byte counts from the refusal lines, then look each one up in the carve index's |
|
Tested 8e8c5df merged onto main 5d74c27 (clean merge) on NVIDIA GeForce RTX 4070, driver 621.24, native Windows 11 Pro 26300, MSVC 14.44.35207, Ninja RelWithDebInfo: pass.
No game data used. AI-assisted (Claude Code). |
|
Retail-boot A/B for @sh1shu1's reading (console MS = 24). Same stack as my comment above: Windows 11, RTX 3060 Ti, NVIDIA 621.24, own copy,
So the runtime supports sh1shu1's carve-size evidence: taking 24 as the mesh shader is what lets these streams build. The frames are still black (the title is loading). The next lines in that run are Suggestion for this PR: take 24 as MS when the stream has no MS subobject (with the PS it carries). What 23 is (AS, per sh1shu1) stays open; I saw no type 23 either. Counts only. AI-assisted (Claude Code). |
|
@sh1shu1 @lines9686-rgb you're right, and thank you for the carve-size match (430/430 against I'm reworking this PR now: in a stream with no PC MS subobject, take 24 as the MS (with the PS it carries), so these PSOs build as mesh pipelines; drop the 23 → HS remap, since nobody has seen a type 23 at run time (23 stays an unknown type until it is measured); move the new test cases into the mesh-capable part of |
…ithout MS
Slot 86 pipeline streams carry a subobject of type 24, which
parse_pipeline_stream took as an amplification shader, so create_graphics
refused those PSOs ("amplification shaders are not supported"). TreXito's
static reading of the retail title showed that type 24 exists there
(Leonida#8186). sh1shu1 and lines9686-rgb then showed what it is: every
refused payload size matches a mesh-shader container, and taking 24 as the
mesh shader lets a retail boot run with real mesh pipelines, where taking
it as a vertex shader finds no translated VS (Leonida#8815).
A stream with no PC MS subobject (type 25) now takes 24 as its MS. A stream
that already has an MS keeps the PC reading: 24 stays an AS, which is
refused. Type 23 is not mapped: nobody has seen it at run time, so it stays
an unknown type (E_INVALIDARG) as on main. The remap is logged once.
Tests: d3d12_mesh covers 24 with PS and no MS (mesh pipeline created), 24
with a real MS (AS refused), 24 with a VS (mesh PSO with a vertex stage,
E_INVALIDARG) and 23 (E_INVALIDARG). The first case fails on main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwHrL5Lxc1rum25b6tnpo8
8e8c5df to
5b2d819
Compare
|
New head Reworked after @sh1shu1's carve-size match and @lines9686-rgb's A/B: in a pipeline state stream with no PC MS subobject, console subobject type 24 is now taken as the mesh shader ( Tests ( Windows 11 26300, RTX 4070 SUPER, MSVC RelWithDebInfo: I have not re-measured on a retail boot without AI-assisted (Claude Code). |
|
Tested 5b2d819 on NVIDIA RTX 4070 SUPER (driver 616.92), Windows 11 26200, Intel i7-8700, MSVC 14.44, RelWithDebInfo, merge-base
|
Claimed in: #8504 (comment)
Depends on: none
What and why
Slot 86 pipeline streams carry a subobject of type 24.
parse_pipeline_streamtook it as an amplification shader, socreate_graphicsrefused those PSOs ("amplification shaders are not supported"). @TreXito's static reading in #8186 showed that type 24 exists in the retail title. Retail boots then showed what it is: the console's mesh shader.LEONIDA_STUB_PIPELINES=1: type 24 as AS (main) is refused and the boot dies at 118 s; as VS (the previous head of this PR) gives 1,554 distinct "no translated vs" and the boot dies at 28 s; as MS the boot runs the full 180 s with no exception, 65,536+PresentX, 0 graphics stubs, and the PSOs are real mesh pipelines.What this PR does (
map_console_stages, after the parse loop):ms = as), with the PS it carries, so the PSO builds as a mesh pipeline onVK_EXT_mesh_shader.main's behaviour: 24 stays an amplification shader, refused bycreate_graphics.E_INVALIDARG) as onmain.Thanks @TreXito for the static reading, and @sh1shu1 and @lines9686-rgb for the measurements that corrected the first version of this PR (which took 24 as the VS and 23 as the HS).
Tested
Windows 11 26300, RTX 4070 SUPER, MSVC RelWithDebInfo, base
main5d74c27.d3d12_mesh_test, new cases in the part that needsVK_EXT_mesh_shader: PS + 24 without MS creates a mesh PSO; 24 + a real MS keeps the AS refusal (E_NOTIMPL); 24 + VS isE_INVALIDARG(a mesh PSO has no vertex stage); 23 isE_INVALIDARG. The first case fails onmainand passes now.d3d12_vulkan_device,d3d12_depth_resolve,d3d12_indirect_rt) are the ones that also fail onmainon this machine; the run was not on an idle machine.LEONIDA_STUB_PIPELINESfor this head; the retail evidence is the two measurements credited above.Limits
mswas only checked through the carve sizes and the stubbed boot, not with real shaders loaded.Slot numbers and counts only, no game data. AI-assisted (Claude Code).
cc @ItsNotRexed