From d386cef246b5949a1199f3b9d53a9e6d125e4869 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 22 Apr 2016 14:26:50 +0200 Subject: 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 Reviewed-by: Ilia Mirkin Reviewed-by: Samuel Pitoiset --- src/gallium/docs/source/tgsi.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/docs') diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index bf09406..c6e5ceb 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -3046,6 +3046,14 @@ For vertex shaders, the zero-based index of the current draw in a component is used. +TGSI_SEMANTIC_WORK_DIM +"""""""""""""""""""""" + +For compute shaders started via opencl this retrieves the work_dim +parameter to the clEnqueueNDRangeKernel call with which the shader +was started. + + Declaration Interpolate ^^^^^^^^^^^^^^^^^^^^^^^ -- cgit v1.1