From 13d875da32d4ec33cbe1c3a95ffd243c4940db34 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 30 Apr 2024 17:01:16 -0400 Subject: [PATCH] libagx: use sub_group_scan_inclusive_add now that the backend has a full subgroup impl. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/shaders/geometry.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/lib/shaders/geometry.cl b/src/asahi/lib/shaders/geometry.cl index 29214e0a138..2a58bd6e3d6 100644 --- a/src/asahi/lib/shaders/geometry.cl +++ b/src/asahi/lib/shaders/geometry.cl @@ -515,7 +515,7 @@ libagx_work_group_scan_inclusive_add(uint x, local uint *scratch) uint sg_id = get_sub_group_id(); /* Partial prefix sum of the subgroup */ - uint sg = sub_group_scan_exclusive_add(x) + x; + uint sg = sub_group_scan_inclusive_add(x); /* Reduction (sum) for the subgroup */ uint sg_sum = sub_group_broadcast(sg, 31);