| Issue |
164005
|
| Summary |
[SPIR-V] Incorrect SPIR-V when using a global variable to access resources
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
luciechoi
|
SPIR-V validator fails when using accessing resources with a global variable
```
RWStructuredBuffer<uint> ReadWriteStructuredBuf[64];
uint i;
[numthreads(1,1,1)]
void main() {
ReadWriteStructuredBuf[i][99] = 98;
}
```
Found from https://github.com/llvm/llvm-project/issues/162889
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs