Fix WavePrefixCountBits() being off by one.
authorRyp <thibault.schueller@protonmail.com>
Thu, 21 Apr 2022 19:05:17 +0000 (22:05 +0300)
committerRyp <thibault.schueller@protonmail.com>
Fri, 22 Apr 2022 17:59:10 +0000 (20:59 +0300)
commitf906b895ecb710a018731aebc7fbd484e707a49b
tree8300f9c3e4fe3132eedfef23a99ec7a8d09b7076
parent06ac14141222bc059f48609b9a4a68fdb6fc4814
Fix WavePrefixCountBits() being off by one.

It was counting bits up to the current lane included, whereas the
documentation says it should be excluded. This now matches dxc's behavior
as well.

Fix #2929
Test/baseResults/hlsl.waveprefix.comp.out
glslang/HLSL/hlslParseHelper.cpp