From 0df1e19b91741ba42275e3b5522dabcec0cb3650 Mon Sep 17 00:00:00 2001 From: Liam J LiamRay11/LiamRay10 <228416644+LiamRay11@users.noreply.github.com> Date: Fri, 27 Nov 2026 16:19:53 -0800 Subject: [PATCH] asahi/libagx: use 256-thread workgroups for libagx_fill_uint4 libagx_copy_uint4 already uses 256-thread workgroups, while libagx_fill_uint4 still used 32-thread workgroups (8x more workgroup launches for large buffer fills). Raising libagx_fill_uint4 to KERNEL(256) improves gpubench copy.bw kind=fill at depth 4 on M6 (G18G B1) from 122.4 GB/s (548.2 us/submit) to 127.2 GB/s (527.4 us/submit, +3.9%). Signed-off-by: Liam J LiamRay11/LiamRay10 <228416644+LiamRay11@users.noreply.github.com> --- src/asahi/libagx/copy.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/libagx/copy.cl b/src/asahi/libagx/copy.cl index ac9f1063feaf..93fb6691faa5 100644 --- a/src/asahi/libagx/copy.cl +++ b/src/asahi/libagx/copy.cl @@ -452,7 +452,7 @@ libagx_resolve_unorm8x4(global uint8_t *dest, global uint8_t *src, } } -KERNEL(32) +KERNEL(256) libagx_fill_uint4(global uint4 *address, uint layer_stride_uint4, uint a, uint b, uint c, uint d) {