From: Ilia Mirkin Date: Sat, 11 Apr 2020 03:43:29 +0000 (-0400) Subject: gallium: add TGSI_SEMANTIC_VIEWPORT_MASK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17308c10141aa54ebf9e595920297888edf6146e;p=mesa.git gallium: add TGSI_SEMANTIC_VIEWPORT_MASK Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index 558c33e5f89..6b637f1f811 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -109,6 +109,7 @@ const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] = "SUBGROUP_LE_MASK", "SUBGROUP_LT_MASK", "CS_USER_DATA_AMD", + "VIEWPORT_MASK", }; const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] = diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 1e80edb8f07..bf2a508dce2 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -3526,6 +3526,13 @@ A bit mask of ``bit index < TGSI_SEMANTIC_SUBGROUP_INVOCATION``, i.e. ``(1 << subgroup_invocation) - 1`` in arbitrary precision arithmetic. +TGSI_SEMANTIC_VIEWPORT_MASK +""""""""""""""""""""""""""" + +A bit mask of viewports to broadcast the current primitive to. See +GL_NV_viewport_array2 for more details. + + TGSI_SEMANTIC_TESS_DEFAULT_OUTER_LEVEL """""""""""""""""""""""""""""""""""""" diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 5770eba0837..04a34f2bc9d 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -209,6 +209,7 @@ enum tgsi_semantic { TGSI_SEMANTIC_SUBGROUP_LE_MASK, TGSI_SEMANTIC_SUBGROUP_LT_MASK, TGSI_SEMANTIC_CS_USER_DATA_AMD, + TGSI_SEMANTIC_VIEWPORT_MASK, TGSI_SEMANTIC_TESS_DEFAULT_OUTER_LEVEL, /**< from set_tess_state */ TGSI_SEMANTIC_TESS_DEFAULT_INNER_LEVEL, /**< from set_tess_state */ TGSI_SEMANTIC_COUNT, /**< number of semantic values */