From 28193eb952c0cf5f6236551d16ffc32adf14d759 Mon Sep 17 00:00:00 2001 From: Thomas Smith <68340554+b0nes164@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:08:01 -0700 Subject: [PATCH] Fix incorrect transcription of function. --- vello_shaders/shader/pathtag_scan_csdldf.wgsl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vello_shaders/shader/pathtag_scan_csdldf.wgsl b/vello_shaders/shader/pathtag_scan_csdldf.wgsl index 812944e16..f50ea5038 100644 --- a/vello_shaders/shader/pathtag_scan_csdldf.wgsl +++ b/vello_shaders/shader/pathtag_scan_csdldf.wgsl @@ -70,6 +70,7 @@ fn fallback( part_ix: u32, fallback_ix: u32, member_ix: u32, + aggregate: u32, fallback_aggregate: u32, prev: ptr, inclusive_complete: ptr @@ -82,7 +83,7 @@ fn fallback( *prev += prev_payload >> 2u; } if(fallback_ix == 0u || (prev_payload & FLAG_MASK) == FLAG_INCLUSIVE){ - atomicStore(&reduced[part_ix][member_ix], ((fallback_aggregate + *prev) << 2u) | FLAG_INCLUSIVE); + atomicStore(&reduced[part_ix][member_ix], ((aggregate + *prev) << 2u) | FLAG_INCLUSIVE); sh_tag_broadcast[member_ix] = *prev; *inclusive_complete = true; } @@ -327,6 +328,7 @@ fn main( part_ix, fallback_ix, 0u, + agg[0u], f_agg[0u], &prev0, &inc0, @@ -339,6 +341,7 @@ fn main( part_ix, fallback_ix, 1u, + agg[1u], f_agg[1u], &prev1, &inc1, @@ -351,6 +354,7 @@ fn main( part_ix, fallback_ix, 2u, + agg[2u], f_agg[2u], &prev2, &inc2, @@ -363,6 +367,7 @@ fn main( part_ix, fallback_ix, 3u, + agg[3u], f_agg[3u], &prev3, &inc3, @@ -375,6 +380,7 @@ fn main( part_ix, fallback_ix, 4u, + agg[4u], f_agg[4u], &prev4, &inc4,