Repository navigation
shader: derive mesh entry root inputs from the creation root signature - #3446
Merged
Merged
Conversation
Leyukaka
force-pushed
the
shader-mesh-guest-root
branch
from
November 29, 2026 10:28
e3baeee to
3ba4884
Compare
8 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3416
What changes
walk_raw_graphics_rootfactors out the SGPR walk fromread_raw_graphics. Vertex and pixel stages start at s8 as before; the mesh stage starts at s16. Every parameter consumes its slots in signature order (table 1, constants N, root descriptor 2), then the resource heap SGPR.derive_mesh_root_mappingmaps descriptor tables, root constants and root SRVs visible to ALL or MESH, plus the directly indexed resource heap SGPR. Root CBVs and UAVs consume two slots each and stay unmapped. The sampler heap is not mapped for mesh.derive_mesh_root_mappingrefuses a guest root withDENY_MESH_SHADER_ROOT_ACCESSbefore any binding is derived (guest root denies mesh shader root access).compile_dxil: a new.mslayoutlineguest_rootderives the root inputs from the request's sibling serialized 1.1.root. It is refused when repeated (duplicate guest_root) and when combined withtable,constants,root_addressorresource_heapin either order (guest_root excludes explicit root mapping lines).docs/experiments/native-fixed-mesh57.mddocuments the line.Evidence
Release preset:
native_direct_meshandnative_compile_dxil_refusalspass (2/2).Mutations (reverted after each run):
if (raw.guest_root)->if (false && raw.guest_root)): both tests fail.native_direct_meshatderived-mesh-root:native compute +0x8: mesh scalar memory needs a verified guest root mapping: s_load_dwordx4native_compile_dxil_refusalsatcheck_mesh_report(...):{'examined': 5, 'no_refusal': 1, 'refused': 4, ...}guest_rootrefusal:native_direct_meshfails atconflicting-mesh-root-*(the compile succeeds).native_compile_dxil_refusalsstill passes; it does not cover this refusal.DENY_AMPLIFICATION_SHADER_ROOT_ACCESSinstead:native_direct_meshfails atdeny-mesh-root-access(the compile succeeds).Not covered
prtest preset does not runnative_direct_meshornative_compile_dxil_refusals(not in its filter on 1a0120b).table,constants,root_address) is still accepted with a root that hasDENY_MESH_SHADER_ROOT_ACCESS; onlyguest_rootchecks the flag.MS buffer slot outside a verified SRV range).Merge notes
e358cf5f, which includes shader: refuse EXEC widening inside an open mesh lane-skip block #3443, shader: accept the mesh group exchange without the EXEC save #3444 and shader: admit s_max_u32 and v_mul_hi_u32 in the mesh frontend #3445.git merge-treeis clean against main20bd1553and shader: accept readfirstlane of a proven wave-uniform VGPR in the mesh frontend #3439 (6193c5a5).