Commit a63596e
committed
GPU: keep the constant memory block out of Metal's constant address space
MSL's generic address space does not span constant, so a generic member function
cannot be called on an object living there, and the shared code is generic
throughout. Metal therefore implies GPUCA_NO_CONSTANT_MEMORY, which redirects
GPUconstant() to GPUglobal(). GPUconstantref() has to follow: the Metal block
hardcoded constant and so kept handing out constant references whatever the
setting; dropping it lets it fall through to the generic fallback.1 parent 186a4af commit a63596e
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
0 commit comments