gallium: add TGSI_SEMANTIC_VIEWPORT_MASK
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 11 Apr 2020 03:43:29 +0000 (23:43 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 16 Apr 2020 00:12:00 +0000 (20:12 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4529>

src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h

index 558c33e5f89c01aaf1f23d6d64facf4a440d32e2..6b637f1f811d041b38dbba0e6ce3c22a823fe230 100644 (file)
@@ -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] =
index 1e80edb8f070a0668856e99bc943af762011c364..bf2a508dce2f51e647a7eb4c9e67bf61e8ecde53 100644 (file)
@@ -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
 """"""""""""""""""""""""""""""""""""""
 
index 5770eba0837b9eb3a66e54af0639f1bf13df5af9..04a34f2bc9d4d8c0023e1ad7533bece67e07e2c0 100644 (file)
@@ -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 */