[Mesa-dev] [PATCH v2] tgsi: document semantics for compute shaders

Nicolai Hähnle nhaehnle at gmail.com
Mon Sep 12 11:52:42 UTC 2016


Thanks for doing this!

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 10.09.2016 17:10, Samuel Pitoiset wrote:
> Cc: Nicolai Hähnle <nicolai.haehnle at amd.com>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/docs/source/tgsi.rst | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
>
> diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
> index c6e5ceb..881aef6 100644
> --- a/src/gallium/docs/source/tgsi.rst
> +++ b/src/gallium/docs/source/tgsi.rst
> @@ -3054,6 +3054,34 @@ parameter to the clEnqueueNDRangeKernel call with which the shader
>  was started.
>
>
> +TGSI_SEMANTIC_GRID_SIZE
> +"""""""""""""""""""""""
> +
> +For compute shaders, this semantic indicates the maximum (x, y, z) dimensions
> +of a grid of thread blocks.
> +
> +
> +TGSI_SEMANTIC_BLOCK_ID
> +""""""""""""""""""""""
> +
> +For compute shaders, this semantic indicates the (x, y, z) coordinates of the
> +current block inside of the grid.
> +
> +
> +TGSI_SEMANTIC_BLOCK_SIZE
> +""""""""""""""""""""""""
> +
> +For compute shaders, this semantic indicates the maximum (x, y, z) dimensions
> +of a block in threads.
> +
> +
> +TGSI_SEMANTIC_THREAD_ID
> +"""""""""""""""""""""""
> +
> +For compute shaders, this semantic indicates the (x, y, z) coordinates of the
> +current thread inside of the block.
> +
> +
>  Declaration Interpolate
>  ^^^^^^^^^^^^^^^^^^^^^^^
>
>


More information about the mesa-dev mailing list