From 3902e6561877cecdb0ee7b3b30188f5e5147171f Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Mon, 16 Jan 2023 20:20:20 +0000 Subject: [PATCH] Fix missing barriers in the `pathtag_scan`s (#255) Co-authored-by: Raph Levien Co-authored-by: Raph Levien --- shader/pathtag_scan.wgsl | 1 + shader/pathtag_scan1.wgsl | 1 + 2 files changed, 2 insertions(+) diff --git a/shader/pathtag_scan.wgsl b/shader/pathtag_scan.wgsl index 009e3b4..0d8e9e5 100644 --- a/shader/pathtag_scan.wgsl +++ b/shader/pathtag_scan.wgsl @@ -60,6 +60,7 @@ fn main( workgroupBarrier(); sh_monoid[local_id.x] = agg_part; } + workgroupBarrier(); // prefix up to this workgroup #ifdef small var tm = sh_parent[0]; diff --git a/shader/pathtag_scan1.wgsl b/shader/pathtag_scan1.wgsl index 1d36ab5..13c31c5 100644 --- a/shader/pathtag_scan1.wgsl +++ b/shader/pathtag_scan1.wgsl @@ -55,6 +55,7 @@ fn main( workgroupBarrier(); sh_monoid[local_id.x] = agg; } + workgroupBarrier(); // prefix up to this workgroup var tm = sh_parent[0]; if local_id.x > 0u {