diff options
| author | shelbykb2 <80599220+shelbykb2@users.noreply.github.com> | 2026-11-22 14:56:24 -0700 |
|---|---|---|
| committer | shelbykb2 <80599220+shelbykb2@users.noreply.github.com> | 2026-11-22 18:26:33 -0700 |
| commit | c3d801b45631ea4f9f341c52311b6bdc94d3a73f (patch) | |
| tree | d8eb91effcbf5282485d08237476ab992a36a940 /docs/testing.md | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
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>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/docs/testing.md b/docs/testing.md index fc695d014..c120c24ae 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -214,12 +214,15 @@ partition invariance"). `runtime/test/shaders/w64_graphics.py` checks those tier | |||
| 214 | must differ. CI has no GPU, and the CPU wave interpreter (`tests/semantic/test_wave64_halves.py`) runs vertex shaders | 214 | must differ. CI has no GPU, and the CPU wave interpreter (`tests/semantic/test_wave64_halves.py`) runs vertex shaders |
| 215 | only, so this comparison needs real hardware. | 215 | only, so this comparison needs real hardware. |
| 216 | 216 | ||
| 217 | Vulkan can require a subgroup size for pixel shaders (`VKH_SUBGROUP_SIZE`) but not for vertex or geometry shaders, so | 217 | Vulkan can require a subgroup size for pixel shaders (`VKH_SUBGROUP_SIZE`) where the driver lists the fragment stage in |
| 218 | those two use a RADV switch instead: on GFX10 and newer, RADV runs them as wave64 by default and as wave32 with | 218 | `requiredSubgroupSizeStages`, but not for vertex or geometry shaders, so those two use a RADV switch instead: on GFX10 |
| 219 | `RADV_PERFTEST=gewave32`. The runner sets it itself and checks the result with a probe fixture per stage | 219 | and newer, RADV runs them as wave64 by default and as wave32 with `RADV_PERFTEST=gewave32`. The runner sets it itself |
| 220 | (`vs_w64_c_lane_id`, `gs_w64_c_lane_id`): the largest lane id must reach 32 at wave64 and stay below 32 at wave32. On | 220 | and checks the result with a probe fixture per stage (`vs_w64_c_lane_id`, `gs_w64_c_lane_id`): the largest lane id |
| 221 | other drivers (AMD Windows, NVIDIA, Intel) the probe sees no change, and only the default-size checks run; tier C is | 221 | must reach 32 at wave64 and stay below 32 at wave32. On other drivers (AMD Windows, NVIDIA, Intel) the probe sees no |
| 222 | then a `SKIP`, not a failure. | 222 | change, and only the default-size checks run; tier C is then a `SKIP`, not a failure. Not every driver lists the |
| 223 | fragment stage either: on an RX 6800 (RDNA2) with AMD's Windows driver 26.11.2 the list is compute only, no size can | ||
| 224 | be requested for pixel shaders (they run at the 64-wide default), and the tier C pixel fixtures are a `SKIP` too | ||
| 225 | (2026-11-22, [d3d12_vulkan.md](d3d12_vulkan.md), "Subgroup size"). | ||
| 223 | 226 | ||
| 224 | Build and run it on Linux with RADV, pinned to one GPU (`LEONIDA_VK_DEVICE`, see "Choosing the GPU"): | 227 | Build and run it on Linux with RADV, pinned to one GPU (`LEONIDA_VK_DEVICE`, see "Choosing the GPU"): |
| 225 | 228 | ||