Commit aa9b462
authored
[SPIRV] Fix layout rule for BufferPointer pointee type (#7956)
When picking the layout rule for the Pointee type of a BufferPointer, we
are using the layout for the object containing the pointer, but that is
incorrect.
The layout for the PhysicalStorageBuffer should always follow the
storage buffer layout rules.
Fixes #78931 parent 917de5d commit aa9b462
File tree
2 files changed
+31
-4
lines changed- tools/clang
- lib/SPIRV
- test/CodeGenSPIRV
2 files changed
+31
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | 839 | | |
843 | 840 | | |
844 | | - | |
| 841 | + | |
| 842 | + | |
845 | 843 | | |
846 | 844 | | |
847 | 845 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments