mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
76bb81dd59
commit
13d875da32
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue