Description
Repro: https://hlsl.godbolt.org/z/bMx7vaE4j
A cbuffer matrix (float4x2) indexed via a dynamic index derived from SV_GroupIndex and writes to an RWStructuredBuffer causes The following error:
error: validation errors
<source>:9:15: error: Access to out-of-bounds memory is disallowed.
note: at '%12 = getelementptr inbounds [2 x float], [2 x float]* %3, i32 0, i32 2' in block '#0' of function 'main'.
Validation failed.
We do not see this error when targeting SPIR-V. Similarly Clang does not error on this same case
https://hlsl.godbolt.org/z/4W17rPrzv