Skip to content

Commit

Permalink
Fix incorrect transcription of function.
Browse files Browse the repository at this point in the history
  • Loading branch information
b0nes164 committed Sep 19, 2024
1 parent 383d37e commit 28193eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vello_shaders/shader/pathtag_scan_csdldf.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ fn fallback(
part_ix: u32,
fallback_ix: u32,
member_ix: u32,
aggregate: u32,
fallback_aggregate: u32,
prev: ptr<function, u32>,
inclusive_complete: ptr<function, bool>
Expand All @@ -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;
}
Expand Down Expand Up @@ -327,6 +328,7 @@ fn main(
part_ix,
fallback_ix,
0u,
agg[0u],
f_agg[0u],
&prev0,
&inc0,
Expand All @@ -339,6 +341,7 @@ fn main(
part_ix,
fallback_ix,
1u,
agg[1u],
f_agg[1u],
&prev1,
&inc1,
Expand All @@ -351,6 +354,7 @@ fn main(
part_ix,
fallback_ix,
2u,
agg[2u],
f_agg[2u],
&prev2,
&inc2,
Expand All @@ -363,6 +367,7 @@ fn main(
part_ix,
fallback_ix,
3u,
agg[3u],
f_agg[3u],
&prev3,
&inc3,
Expand All @@ -375,6 +380,7 @@ fn main(
part_ix,
fallback_ix,
4u,
agg[4u],
f_agg[4u],
&prev4,
&inc4,
Expand Down

0 comments on commit 28193eb

Please sign in to comment.