libagx: use sub_group_scan_inclusive_add

now that the backend has a full subgroup impl.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
This commit is contained in:
Alyssa Rosenzweig 2024-04-30 17:01:16 -04:00 committed by Marge Bot
parent 76bb81dd59
commit 13d875da32

View file

@ -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);