Repository navigation
Description
The Mesh86 work in #3703 tracks the mesh halves. The pixel halves of the same pipelines have their own walls. This
is an offline census of every captured slot 86 pixel stage through compile_dxil gfx1013-mesh86-ps, the same
translate_graphics_container call the runtime makes for a Mesh86 pair.
Capture: one arm-B run (X2W_NATIVE_MESH86=1) of the local case-study package, main 158ef794. Counts only, no
shader bytes. 6,436 distinct .ps86 + .root (24,817 requests); 11 are empty (depth-only, 2,958 requests) and are
refused before translation. (#3803 counts requests with no pixel stage in another cache, 987 of 3,876 .m86; this
table counts distinct stages from one run, so the two numbers do not compare directly.) The remaining 6,425 real
pixel stages:
| First refusal | Stages | Requests | Owner |
|---|---|---|---|
| graphics branch on a wave mask | 3,370 | 11,300 | flat two-armed CMPX if/else: us, #3815 (322 / 574 move); the rest open |
| DPP8 requires repeating quad-local selections | 844 | 2,103 | open |
| graphics wave or control-flow instruction | 728 | 4,097 | open |
| branch enters a masked graphics region | 363 | 1,296 | open |
| masked graphics region requires lane-local vector arithmetic | 344 | 1,025 | open |
| undefined graphics register 126 | 212 | 520 | open |
| unsupported scalar memory addressing | 116 | 534 | open |
| graphics scalar condition depends on a varying input | 73 | 248 | open |
| branch enters a CMPX region | 53 | 147 | open |
| 12 smaller walls | 48 | 182 | open |
| translates | 272 | 406 | — |
- Two-armed CMPX if/else (
s_mov_b64 s[4:5], exec; v_cmpx_*; s_cbranch_execz ELSE; …; ELSE: s_andn2_b64 exec, s[4:5], exec; s_cbranch_execz JOIN; …; JOIN: s_mov_b64 exec, s[4:5]):pixel_readonly_armsonly matched the
one-armed skip. shader: lower two-armed CMPX if/else regions in wave64 pixel stages #3815 adds the flat form. On this census 322 stages (574 requests) move on; they next stop at
"looping graphics shader uses an entry input operation after a branch" (315) and readfirstlane (9). The 24 pixel
stages of the Mesh86 draws selected in the run all pass every CMPX region. - The rest of the wave-mask wall (3,048) is a long tail. In a sample of 150: one-armed EXECZ skips over scalar
loads or WQM tails, SAVEEXEC fed bys_xor/s_ormasks, a CMPX if nested inside an arm, and uniform
vccnz/sccbranches inside an arm. - First refusal only: clearing one wall shows the next, as on the mesh side.
- Not covered here:
validate_raster_link(ms, ps)andmake_native_mesh86_rooton the pair.
Command: ps86_census.py <compile_dxil> <dxc> <cache> <out> 0 6 (every distinct stage, 6 jobs). The script is a
local helper; I can add it under tools/ if that is useful.
AI-assisted.
Activity
lukaslw-lab commentedon Dec 2, 2026
Work split on main
0dd65da1Same capture and method as above. Main now includes #3815: 272 of 6,425 real pixel stages translate. #3819 (WQM complementary arms) changes no first refusal on this capture: its shape is not the first one any of these stages reach.
The two largest refusals, split by the instruction shape at the refusal (offline disassembly of the refusing stages; only the refusal site and its branch target are classified, not the arm contents):
graphics branch on a wave mask(3,048 stages). Shares from a 600-stage random sample, scaled to 3,048:s_and_b64 exec, exec, sN(coverage re-applied)s_xor_b64 sN, sM, -1mask ("if not")s_wqm_b64(WQM re-entered after the arm)s_or_b64/s_and_b64masks_andn2_wrexec_b64+ backwards_cbranch_execnz, withv_readfirstlanegraphics wave or control-flow instruction(728 stages, all classified):v_mul_legacy_f32/v_fract_f32, thenv_cmpx_lt/gt_f32)s_and_b64 exec, exec, sNafter interpolation (coverage mask)v_writelane_b32(SGPR spill to a VGPR lane)s_and_b64 vcc, exec, vccOther first refusals: DPP8 quad selection 844, branch into a masked region 363 (and into a CMPX region 53) (timbot103, #3849 draft), lane-local vector arithmetic in a masked region 344 (timbot103, #3840 draft), looping shader reads an input after a branch 315 (timbot103, #3831 merged), EXEC read at entry (
undefined graphics register 126) 212 (timbot103, #3834 draft), scalar memory addressing 116 (timbot103, #3833 draft: DLC/GLC part), scalar condition on a varying input 73 (timbot103, #3845 draft), smaller ones 70.s_bitset1_b32, then stop at a scalar loop #3703.f365f125+ shader: keep mesh output rows with an integer element constant #3825 + shader: lower pixel SAVEEXEC lane-mask expressions (Part of #3814) #3826, shader: lower one-armed pixel CMPX skips with scalar loads and SALU #3828, shader: lower pixel alpha-test kills and coverage re-application #3829 still translates 272 (0 gained, 0 lost); 118 stages change their first refusal. Most G1 kills use a live-mask form that shader: lower pixel alpha-test kills and coverage re-application #3829 does not accept yet (details on shader: lower pixel alpha-test kills and coverage re-application #3829).AI-assisted.
timbot103 commentedon Dec 2, 2026
Claiming three independent pixel-stage slices from the
0dd65da1split above (each as its own focused PR with dedicated source-built DXIL + GPU readback fixtures):v_cmpx_*lane kill without saved EXEC, post-interpolation coverage re-application (s_and_b64 exec, exec, sN), and one-armed CMPX skips followed by coverage re-application.s_and_saveexec_b64fed bys_xor_b64 sN, sM, -1/s_not_b64("if not") ands_or_b64/s_and_b64/s_andn2_b64compare-mask combinations.shader: lower pixel alpha-test kills and coverage re-application Part…
shader: lower pixel alpha-test kills and coverage re-application
timbot103 commentedon Dec 2, 2026
All three claimed slices are now open for review:
s_and_saveexec_b64lane-mask expressions): shader: lower pixel SAVEEXEC lane-mask expressions (Part of #3814) #3826v_cmpx_*kills,s_and_b64 exec, exec, sNcoverage re-application, and combined one-armed CMPX coverage restore): shader: lower pixel alpha-test kills and coverage re-application #3829timbot103 commentedon Dec 2, 2026
Claiming three more disjoint
#3814slices (will stage as Draft PRs per #3514 until our active review slots open, each with source-built DXIL + WARP/RTX 5080 hardware tests):looping graphics shader uses an entry input operation after a branch(~315 stages — the main second wall uncovered by shader: lower two-armed CMPX if/else regions in wave64 pixel stages #3815):emit_graphics_loopsentry interpolation / barycentric handling.unsupported scalar memory addressing(~116 stages): safe read-only graphics SMEM addressing forms.undefined graphics register 126(entry EXEC reads, ~212) + G3 (v_writelane_b32, 21) + G4 (s_and_b64 vcc, exec, vcc, 16) (~249 stages).timbot103 commentedon Dec 2, 2026
Wave 1 Draft PRs opened (and claiming 2 more disjoint
#3814slices to stage as Drafts per #3514):pixel_readonly_armsandemit_graphics_loops):masked graphics region requires lane-local vector arithmetic(~344 stages): extend safe lane-local ops inside flattened masked regions (GraphicsMaskRegions).PixelWaterfalls(src/gfx1013_pixel_waterfall.inl) fors_clause,v_cmp_eq_* + s_and_saveexec_b64partition form, explicit-LOD / additional image ops, non-in-places_lshl_b32, and constant descriptor offsets.timbot103 commentedon Dec 2, 2026
Draft PRs opened & claiming next disjoint
#3814slice (staged as Draft per #3514):v_writelane_b32+ G4s_and_b64 vcc, exec, vcc), shader: extend native pixel descriptor waterfalls (Part of #3814) #3839 (W6 pixel descriptor waterfall extensions — updating link once created).graphics scalar condition depends on a varying input(73 stages — safe wave/quad-uniform scalar branch proofs and per-lane scalar-compare reconvergence where sound).timbot103 commentedon Dec 2, 2026
Wave 2 Draft PRs opened & claiming next unclaimed
#3814slices (staged as Drafts per #3514):s_mov_b64 sK, exec->v_cmpx_*->s_andn2_b64 sK, sK, exec->s_cbranch_scc0 L->s_and_b64 exec, sC, sKform noted on shader: lower pixel alpha-test kills and coverage re-application #3829, ~566 stages).branch enters a masked graphics region(363) +branch enters a CMPX region(53) (416 stages).s_wqm_b64(WQM re-entered after the arm).timbot103 commentedon Dec 2, 2026
Early Wave 3 Draft PR opened & claiming W7 (staged as Drafts per #3514):
shader/pixel-varying-scalar-cond— varying pixelVCCZshortcuts + uniform VGPR comparisons, 73 stages; 21 WARP + RTX 5080 draws).pixel_readonly_arms, building on shader: lower two-armed CMPX if/else regions in wave64 pixel stages #3815).timbot103 commentedon Dec 2, 2026
Wave 3
#3814Draft PRs opened (staged as Drafts per #3514):shader/pixel-live-mask-kill): live-mask G1+G2 alpha kills (s_mov_b64 sK, exec->v_cmpx_*->s_andn2_b64 sK, sK, exec->s_cbranch_scc0->s_and_b64 exec, sC, sK, ~566 stages) +--startup-pixel-atomicatomic-after-kill GPU readback +mesh86-pixel-execz.mdupdate.shader/pixel-w5-wqm-reentry): W5 whole-quads_wqm_b64EXECZ joins (~270 stages).shader/pixel-branch-masked-region): structured branches & shared restores in masked/CMPX pixel regions (416 stages).shader/pixel-w7-cmpx-ifelse): W7 extended two-armed CMPX if/else arms (~130 stages).shader: lower pixel SAVEEXEC lane-mask expressions (#3826)
shader: lower one-armed pixel CMPX skips with scalar loads and SALU (#…
shader: allow safe entry interpolation in pixel loops (#3831)