From 7e35123bae1cd3b032fdffcafd600aa78394bf2d Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Thu, 16 Oct 2025 13:42:57 +0300 Subject: Fix WGSL bitshift test typo (#8720) Random drive-by test fix, this was reading past the end of the buffer but usually succeeded because the expected result is 0. --- tests/wgsl/bitshifts.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/wgsl') diff --git a/tests/wgsl/bitshifts.slang b/tests/wgsl/bitshifts.slang index 50d2fc43d..1ca01de6a 100644 --- a/tests/wgsl/bitshifts.slang +++ b/tests/wgsl/bitshifts.slang @@ -84,7 +84,7 @@ void computeMain() outputBuffer[41] = v3[1]; outputBuffer[42] = v3[2]; - v4 = int4(inputBuffer[0], inputBuffer[1], inputBuffer[2], inputBuffer[4]) >> int4(1, 2, 3, 4); + v4 = int4(inputBuffer[0], inputBuffer[1], inputBuffer[2], inputBuffer[3]) >> int4(1, 2, 3, 4); outputBuffer[43] = v4[0]; outputBuffer[44] = v4[1]; outputBuffer[45] = v4[2]; -- cgit v1.2.3