Skip to content

Commit 8a52bc5

Browse files
Fix mesh groupshared atomics test bug (#3806)
Mesh shader groupshared initialization and read were asymmetric, resulting in read of uninitialized data.
1 parent e6ba792 commit 8a52bc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/clang/test/HLSL/ShaderOpArith.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,7 @@
21792179
// More threads than results are possible,
21802180
// so indices will result in duplicate copies
21812181
g_uintShare[ix%6] = payload.arith[ix%6];
2182-
g_sintShare[ix%3] = payload.arith[ix%3 + 6];
2182+
g_sintShare[ix%3 + 1] = payload.arith[ix%3 + 6];
21832183
g_xchgShare[ix%64] = payload.xchg[ix%64];
21842184
21852185
GroupMemoryBarrierWithGroupSync();

0 commit comments

Comments
 (0)