diff options
| author | Lucie Choi <clucie@google.com> | 2025-10-21 08:55:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 08:55:17 -0700 |
| commit | 23339c4fc622e2d627c651b92ba5435811b4d5e4 (patch) | |
| tree | 95ea54b1349798f4a15252e064f3c62de163639e /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
| parent | 5b3416caf91f770b6e50fa1cb593d5772a7f6c97 (diff) | |
| download | llvm-23339c4fc622e2d627c651b92ba5435811b4d5e4.zip llvm-23339c4fc622e2d627c651b92ba5435811b4d5e4.tar.gz llvm-23339c4fc622e2d627c651b92ba5435811b4d5e4.tar.bz2 | |
[SPIR-V] Use `OpImageFetch` instead of `OpImageRead` when loading from read-only `Buffer` resource. (#163626)
Currently, the spir-v validator fails if `OpImageRead` instruction is
used when loading from read-only `Buffer`.
### Unit Test
```hlsl
RWBuffer<uint> rwbuff;
Buffer<uint> buff;
[numthreads(1,1,1)]
void main() {
rwbuff[99] = buff[98];
rwbuff[97] = rwbuff[96];
}
```
This also unblocks adding a test case that adds a special capability
when using a non-uniform index on `Buffer` arrays.
(https://github.com/llvm/llvm-project/pull/162540).
Resolves https://github.com/llvm/llvm-project/issues/162891
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
0 files changed, 0 insertions, 0 deletions
