Commit Graph

4 Commits

Author SHA1 Message Date
881377b492 wave32_pixel_scan: use shared same_report_path and catch --out write OSError 2026-11-24 17:41:52 +00:00
87b746d6cd wave32_pixel_scan: align lane-mask analysis, mask_word ops, and SCC vote tracking with rdna2spirv 2026-11-24 00:26:41 +03:00
f09a69a080 wave32_pixel_scan: s_addk_i32 and s_cmpk_* replace SCC; newer-driver subgroup data
An SCC reader after s_addk_i32 or s_cmpk_* reads that instruction's flag, not an earlier lane-mask
SOP's, so it is not a subgroup vote (found by @shdann on #3982). The corpus counts are unchanged
(1,127 wave32 PS; vote 1,127 shaders, 84,150 instructions). Adds @AC-Storm-YT's AMD 26.11.2 stage
lists and live fragment widths (gfx1036 64-wide like the RX 6800, RX 9070 XT exact) to the row.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 18:26:33 -07:00
c3d801b456 docs: required subgroup stages per AMD GPU generation; RDNA2 on Windows can't require pixel or mesh sizes
The "Which stages can be required" row in d3d12_vulkan.md said the AMD Windows driver reports
FRAGMENT | COMPUTE | TASK | MESH, from a Radeon 880M (RDNA3.5). On an RX 6800 (RDNA2, gfx1030) with the
same 26.11.2 release (Windows driver 32.0.21045.29003) it reports COMPUTE only, sizes 32..64, default 64,
measured 2026-11-22. The row is now per GPU, with the 880M kept, the RX 6800 measurement, and
@AC-Storm-YT's 9800X3D iGPU (RDNA2: COMPUTE only) and RX 9070 XT (RDNA4: all four) from #313.

Measured on the RX 6800: no size can be requested for pixel or mesh shaders, and at the default a probe
pixel shader counts 64 live invocations per subgroup (SPIR-V 1.5 and 1.6); ms_w64x_ballot passes natively.
In ps_bitmask_perm lanes 32-63 (2,048 of 4,096 pixels) read v_mbcnt_lo = 32; its check judges lanes 0-31
only. d3d12_subgroup_test, testing.md (tier C pixel fixtures skip here too) and the known gaps say the same.

tools/wave32_pixel_scan.py counts the wave32 pixel shaders with lane-crossing or width-dependent
instructions, by family (counts only; test: tests/test_wave32_pixel_scan.py). Control: 12,101 PS, 1,127
wave32, as in design.md. 1,010 have v_readlane/v_writelane/v_readfirstlane, 146 v_mbcnt, 105 s_bcnt1/s_ff1
of a lane mask, and all 1,127 an EXEC/VCC branch or mask SCC vote.

Co-Authored-By: Claude Opus <noreply@anthropic.com>
2026-11-22 18:26:33 -07:00