Skip to content

Commit d7ea45d

Browse files
committed
Fix a bug in the calculation of stack uniformity
* The simulation incorrectly marked some continues as non-uniform * this leads to some ballots being marked with the special value * in WGSLv1, Workgroup, and Subgroup styles this would lead to fewer ballots being checked (so likely no change in results) * in Maximal though, this leads to some ballots being a wacky value and extra failures
1 parent b8f7b88 commit d7ea45d

File tree

1 file changed

+1
-1
lines changed
  • src/webgpu/shader/execution/reconvergence

1 file changed

+1
-1
lines changed

src/webgpu/shader/execution/reconvergence/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ ${this.functions[i]}`;
19661966
break;
19671967
}
19681968

1969-
const uniform = this.style === Style.WGSLv1 && this.isUniform(mask, subgroupSize);
1969+
const uniform = this.style !== Style.WGSLv1 || this.isUniform(mask, subgroupSize);
19701970

19711971
let n = nesting;
19721972
for (; n >= 0; n--) {

0 commit comments

Comments
 (0)