mesa/src/microsoft/clc
Jesse Natalie 1649a4d92b microsoft/clc: When possible, compute a part-constant "pointer" value for kernel inputs
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>
2024-03-26 20:12:41 +00:00
..
clc_compiler.c microsoft/clc: When possible, compute a part-constant "pointer" value for kernel inputs 2024-03-26 20:12:41 +00:00
clc_compiler.h microsoft/clc: Add shader model / validator to compiler API 2023-03-31 00:37:19 +00:00
clc_compiler_test.cpp microsoft/clc: Add a test which sinks image derefs 2023-12-06 01:07:24 +00:00
clc_nir.c microsoft/clc: When possible, compute a part-constant "pointer" value for kernel inputs 2024-03-26 20:12:41 +00:00
clc_nir.h microsoft/clc: When possible, compute a part-constant "pointer" value for kernel inputs 2024-03-26 20:12:41 +00:00
clon12compiler.def Move a bunch of the CLC stuff from src/microsoft to common code 2021-09-30 07:09:08 +00:00
compute_test.cpp treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
compute_test.h microsoft/clc: fixup indentation 2022-04-29 07:08:57 +00:00
meson.build micosoft: decouple microsoft vulkan driver and compiler from gallium 2023-11-04 00:02:59 +00:00