tgsi: Add WORK_DIM System Value
authorHans de Goede <hdegoede@redhat.com>
Fri, 22 Apr 2016 12:26:50 +0000 (14:26 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 2 Jul 2016 10:21:28 +0000 (12:21 +0200)
commitd386cef246b5949a1199f3b9d53a9e6d125e4869
treeae417852be5144417e005c26bc27cf26bc442df3
parentda7efadf040dafe5d925962c88a7189dcf058b25
tgsi: Add WORK_DIM System Value

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.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h