summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_strings.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-04-22 14:26:50 +0200
committerHans de Goede <hdegoede@redhat.com>2016-07-02 12:21:28 +0200
commitd386cef246b5949a1199f3b9d53a9e6d125e4869 (patch)
treeae417852be5144417e005c26bc27cf26bc442df3 /src/gallium/auxiliary/tgsi/tgsi_strings.c
parentda7efadf040dafe5d925962c88a7189dcf058b25 (diff)
downloadexternal_mesa3d-d386cef246b5949a1199f3b9d53a9e6d125e4869.zip
external_mesa3d-d386cef246b5949a1199f3b9d53a9e6d125e4869.tar.gz
external_mesa3d-d386cef246b5949a1199f3b9d53a9e6d125e4869.tar.bz2
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>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_strings.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_strings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c
index c13f7ea..536a4c8 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_strings.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c
@@ -99,6 +99,7 @@ const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] =
"HELPER_INVOCATION",
"BASEINSTANCE",
"DRAWID",
+ "WORK_DIM",
};
const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] =