mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 05:10:36 +02:00
When a kernel input is a pointer to global or constant memory, it's expected that the invoker provides the pointer value in the form of (buffer_index << 32) | offset. The buffer index, however, is statically knowable in the compiler, as long as a buffer is bound. Since it's undefined behavior to dereference the pointer with no buffer bound, we can replace any deref chain that terminates in an access with one that uses a constant buffer index. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26803> |
||
|---|---|---|
| .. | ||
| clc_compiler.c | ||
| clc_compiler.h | ||
| clc_compiler_test.cpp | ||
| clc_nir.c | ||
| clc_nir.h | ||
| clon12compiler.def | ||
| compute_test.cpp | ||
| compute_test.h | ||
| meson.build | ||