Add a new WORK_DIM SV type, this is will return the grid dimensions (1-4) for compute (opencl) kernels.
This is necessary to implement the opencl get_work_dim() function.
d386cef tgsi: Add WORK_DIM System Value
src/gallium/auxiliary/tgsi/tgsi_strings.c | 1 +
src/gallium/docs/source/tgsi.rst | 8 ++++++++
src/gallium/include/pipe/p_shader_tokens.h | 1 +
3 files changed, 10 insertions(+)
Upstream: cgit.freedesktop.org