rt::rootsig::pack_stage() lays a root signature out for one stage the
way the console compiler does: root order from the stage base, a table
one dword (its 32-bit VA), a root view two, constants one per value,
and the first parameter that does not fit refused (the spill array
behind s[0:1] is not modelled).
Compute (base s4) is measured: on the package's FidelityFX DLL, whose 29
compute containers carry their RTS0 next to the console-compiled program,
base plus span equals RSRC2 USER_SGPR in 29 of 29, and
root_sig_contract.py --model console finds all 20 translated programs
compatible (the s0 model contradicts 7). VS/PS/GS s8 and MS s16 stay a
census hypothesis.
The compute bind point now uses this layout; graphics keeps pack(),
since every stage reads one push-constant block and a mesh shader (s16)
and a pixel shader (s8) would collide. A signature carries both
layouts; binding it where its layout refused it invalidates the list.
Test fixtures follow: the compute GLSL shaders read the new places, and
the asm fixtures a D3D12 compute PSO runs are built with
LEONIDA_USER_DATA_SHIFT=4 (compute_fixture.py shifts every SGPR and the
RSRC2 user count), so the standalone harness keeps using them at s0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d3d12_subgroup_test now draws ps_w64x_readlane.asm (a wave64 pixel shader with
v_readlane of lanes 40, 5, 33 and 63) over 64x64 pixels through a D3D12 graphics
PSO into a float target: every pixel must carry the derived words where the PSO
required 64 (4096 of 4096 on the Radeon 880M). Probe shaders (compute and
fragment) store gl_SubgroupSize, so the size the driver ran them with is
observed and must equal what the PSO required; a wave32 compute shader's control
run is asserted to differ on a device whose default is not 32, and the pixel
probe shows the wave32 request changing 64-wide to 32-wide on the 880M. The
wave64 pixel control is asserted to differ only where the default pixel
subgroup is not 64.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>