NotRexed
2edbda73e7
translator: quad reads and helper lanes in pixel shaders, from VIctory
...
On the console whole-quad mode puts a pixel shader's helper lanes in EXEC.
Vulkan keeps a helper active for quad and derivative operations only;
whether it joins a ballot or a shuffle is the driver's choice. Ported from
VIctory, which runs the title:
- DPP quad_perm, a dpp8 whose every lane reads its own quad, and a
ds_swizzle that stays in the quad (QUAD_PERM, or masks that keep lane
bits 2-4) are quad operations in a pixel shader (Gen.quad_read:
OpGroupNonUniformQuadBroadcast / QuadSwap), the source's EXEC bit too,
so a helper across a triangle edge is read as on hardware (VIctory
921d8d3b4 ). They were subgroup shuffles and a ballot.
- v_readfirstlane_b32 in a pixel shader: an active lane that its own
ballot leaves out (a helper the driver keeps out) takes its own value,
so a waterfall loop serves it in the first pass (VIctory 060195536;
without it such loops spun with only helpers left until DEVICE_HUNG).
An empty ballot read lane 0 before.
- A pixel's discard keeps the killed lane as a helper for the survivors'
quad reads (VIctory 77053a0c5 ): Leonida never ends a lane before the end,
so this held already; the test pins it.
Vertex, geometry and mesh shaders keep their shuffles (no helpers there,
and quad operations would need quadOperationsInAllStages).
spirv_mini_interp.run_workgroup now runs OpGroupNonUniformQuadBroadcast
and QuadSwap, with `helpers` taking part as Vulkan requires.
test_ds_permute's pixel fixture runs whole quads only (a pixel wave holds
whole quads; a lane missing from its quad is a compute shader's case).
Tests: tests/semantic/test_quad_helper_lanes.py with the hand-written
fixtures quad_helper_reads.asm and discard_keeps_helper.asm, run with
helpers a driver leaves out of ballots, votes and shuffles. Contract rows
in docs/design.md. Not GPU-verified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-25 18:32:16 -05:00
..
2026-11-23 08:16:14 -06:00
2026-11-23 17:24:49 -05:00
2026-11-23 19:48:52 +01:00
2026-11-23 09:51:11 -06:00
2026-11-23 20:52:45 +01:00
2026-11-23 21:45:50 +01:00
2026-11-23 22:37:12 +01:00
2026-11-23 11:16:46 -06:00
2026-11-23 08:22:50 -06:00
2026-11-23 22:25:39 +01:00
2026-11-24 00:16:18 +03:00
2026-11-23 20:51:47 +01:00
2026-11-23 23:03:52 +01:00
2026-11-23 08:14:46 -06:00
2026-11-23 08:09:32 -06:00
2026-11-23 23:01:57 +01:00
2026-11-23 11:14:15 -06:00
2026-11-23 13:56:53 -08:00
2026-11-24 00:21:26 +01:00
2026-11-23 23:06:47 +01:00
2026-11-23 12:51:32 -06:00
2026-11-23 20:52:36 +01:00
2026-11-23 10:50:40 -06:00
2026-11-23 23:10:16 +01:00
2026-11-23 08:09:32 -06:00
2026-11-23 10:00:20 -06:00
2026-11-23 21:33:48 +00:00
2026-11-23 09:56:38 -06:00
2026-11-23 09:56:38 -06:00
2026-11-23 11:14:33 -06:00
2026-11-23 23:02:33 +01:00
2026-11-23 20:51:33 +01:00
2026-11-24 00:17:50 +01:00
2026-11-24 03:00:46 +05:00
2026-11-24 00:02:27 +01:00
2026-11-23 09:48:15 -06:00
2026-11-23 21:18:41 +00:00
2026-11-23 11:15:25 -06:00
2026-11-23 11:10:47 -06:00
2026-11-23 20:54:52 +01:00
2026-11-23 15:35:54 -03:00
2026-11-23 20:53:43 +01:00
2026-11-23 11:02:11 -06:00
2026-11-23 11:15:07 -06:00
2026-11-24 00:28:18 +01:00
2026-11-23 10:01:41 -06:00
2026-11-23 09:48:12 -06:00
2026-11-24 00:04:40 +02:00
2026-11-25 17:56:20 -05:00
2026-11-23 09:45:05 -06:00
2026-11-23 11:09:39 -06:00
2026-11-23 17:08:32 -05:00
2026-11-23 12:50:57 -06:00
2026-11-23 12:50:39 -06:00
2026-11-23 12:50:22 -06:00
2026-11-23 22:26:55 +01:00
2026-11-23 08:15:43 -06:00
2026-11-23 09:59:42 -06:00
2026-11-22 23:25:51 -05:00
2026-11-23 10:03:15 -06:00
2026-11-24 00:21:26 +01:00
2026-11-23 12:27:18 -06:00
2026-11-24 00:04:40 +02:00
2026-11-23 17:40:54 -05:00
2026-11-23 10:03:09 -06:00
2026-11-23 16:23:49 -03:00
2026-11-24 00:28:18 +01:00
2026-11-23 17:41:03 -05:00
2026-11-23 12:48:23 -06:00
2026-11-23 12:48:07 -06:00
2026-11-23 23:40:19 +02:00
2026-11-23 22:25:44 +01:00
2026-11-23 20:56:01 +01:00
2026-11-22 23:25:51 -05:00
2026-11-23 08:12:13 -06:00
2026-11-23 09:35:47 -06:00
2026-11-23 10:03:23 -06:00
2026-11-23 12:47:35 -06:00
2026-11-23 12:47:00 -06:00
2026-11-23 16:25:15 -05:00
2026-11-23 12:43:13 -06:00
2026-11-23 12:42:25 -06:00
2026-11-23 12:41:52 -06:00
2026-11-23 12:41:35 -06:00
2026-11-24 00:21:26 +01:00
2026-11-23 09:56:38 -06:00
2026-11-23 09:38:26 -06:00
2026-11-24 09:05:27 +11:00
2026-11-23 12:43:43 -06:00
2026-11-23 11:11:22 -06:00
2026-11-23 12:41:00 -06:00
2026-11-23 09:44:21 -06:00
2026-11-24 05:22:33 +08:00
2026-11-24 00:21:26 +01:00
2026-11-22 23:12:33 -05:00
2026-11-23 12:40:43 -06:00
2026-11-23 09:50:13 -06:00
2026-11-23 19:52:01 +01:00
2026-11-23 13:47:00 -07:00
2026-11-23 22:25:41 +01:00
2026-11-23 12:24:58 -06:00
2026-11-23 10:53:36 -06:00
2026-11-23 10:59:34 -06:00
2026-11-23 12:54:37 -06:00
2026-11-22 23:16:34 -05:00
2026-11-22 23:11:47 -05:00
2026-11-23 21:50:06 +02:00
2026-11-24 05:36:14 +08:00
2026-11-23 11:05:05 -06:00
2026-11-22 23:11:14 -05:00
2026-11-23 09:45:34 -06:00
2026-11-23 11:23:07 -06:00
2026-11-23 11:17:01 -06:00
2026-11-24 00:21:26 +01:00
2026-11-24 00:10:51 +03:00
2026-11-24 00:21:26 +01:00
2026-11-24 01:04:46 +03:00
2026-11-23 09:43:39 -06:00
2026-11-22 23:13:07 -05:00
2026-11-23 09:36:48 -06:00
2026-11-23 22:15:28 +01:00
2026-11-23 20:51:07 +01:00
2026-11-23 09:47:05 -06:00
2026-11-23 11:21:23 -06:00
2026-11-23 17:40:58 -05:00
2026-11-23 11:17:19 -06:00
2026-11-23 10:05:15 -06:00
2026-11-23 23:10:37 +01:00
2026-11-23 09:47:16 -06:00
2026-11-23 12:51:53 -06:00
2026-11-23 10:54:49 -06:00
2026-11-23 22:20:35 +01:00
2026-11-23 12:44:31 -06:00
2026-11-23 21:49:41 +02:00
2026-11-23 10:56:26 -06:00
2026-11-23 16:19:46 -05:00
2026-11-25 18:32:16 -05:00
2026-11-24 00:21:26 +01:00
2026-11-23 09:35:47 -06:00
2026-11-23 09:38:26 -06:00
2026-11-24 00:12:24 +03:00
2026-11-23 08:08:15 -06:00
2026-11-23 10:45:37 -06:00
2026-11-23 10:54:49 -06:00
2026-11-22 23:08:32 -05:00
2026-11-23 22:58:30 +01:00
2026-11-23 10:49:29 -06:00
2026-11-24 00:21:26 +01:00
2026-11-23 09:59:13 -06:00
2026-11-23 11:14:50 -06:00
2026-11-23 17:07:05 -05:00
2026-11-23 12:54:21 -06:00
2026-11-23 11:13:23 -06:00
2026-11-23 09:54:14 -06:00
2026-11-23 08:24:41 -06:00
2026-11-23 09:47:05 -06:00
2026-11-24 00:21:26 +01:00
2026-11-23 11:12:14 -06:00
2026-11-23 20:52:45 +01:00
2026-11-23 20:52:45 +01:00
2026-11-23 09:51:21 -06:00
2026-11-24 02:56:33 +05:30
2026-11-23 21:26:43 +01:00
2026-11-23 22:34:49 +01:00
2026-11-23 09:46:11 -06:00
2026-11-23 22:18:32 +01:00
2026-11-24 02:56:34 +05:30
2026-11-23 22:34:54 +01:00
2026-11-23 10:00:12 -06:00
2026-11-23 16:39:53 -05:00
2026-11-23 11:17:54 -06:00
2026-11-23 17:24:46 -05:00
2026-11-24 03:53:02 +08:00
2026-11-22 23:16:23 -05:00
2026-11-22 23:15:03 -05:00
2026-11-23 20:56:09 +01:00
2026-11-23 08:06:40 -06:00
2026-11-23 17:08:54 -05:00
2026-11-23 08:26:04 -06:00
2026-11-23 11:09:03 -06:00
2026-11-23 22:33:33 +01:00
2026-11-24 00:21:26 +01:00
2026-11-23 16:26:25 -05:00
2026-11-23 10:59:15 -06:00
2026-11-23 11:08:45 -06:00
2026-11-23 08:15:39 -06:00
2026-11-23 08:23:11 -06:00
2026-11-23 17:24:41 -05:00
2026-11-23 11:07:59 -06:00
2026-11-23 11:06:30 -06:00
2026-11-23 10:04:55 -06:00
2026-11-23 09:47:05 -06:00
2026-11-23 17:02:20 -05:00
2026-11-24 02:56:34 +05:30
2026-11-24 00:26:41 +03:00
2026-11-25 17:56:20 -05:00
2026-11-23 11:18:44 -06:00
2026-11-23 18:37:51 -03:00
2026-11-23 11:00:49 -06:00
2026-11-24 00:21:26 +01:00
2026-11-24 01:25:23 +05:30
2026-11-24 00:21:26 +01:00
2026-11-23 17:24:44 -05:00
2026-11-23 20:54:13 +01:00
2026-11-23 09:51:15 -06:00
2026-11-23 20:51:09 +01:00
2026-11-24 00:21:26 +01:00
2026-11-24 00:21:26 +01:00
2026-11-23 20:54:13 +01:00
2026-11-23 21:06:40 +01:00
2026-11-23 09:49:55 -06:00
2026-11-23 20:55:18 +01:00
2026-11-24 00:21:26 +01:00
2026-11-23 09:41:55 -06:00
2026-11-23 10:04:49 -06:00