gallium: add TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 11 Apr 2020 03:45:41 +0000 (23:45 -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 6b637f1f811d041b38dbba0e6ce3c22a823fe230..d6e8854a8b2f5026f933cb3a9e61381c7654116c 100644 (file)
@@ -163,6 +163,7 @@ const char *tgsi_property_names[TGSI_PROPERTY_COUNT] =
    "MUL_ZERO_WINS",
    "VS_BLIT_SGPRS_AMD",
    "CS_USER_DATA_COMPONENTS_AMD",
+   "LAYER_VIEWPORT_RELATIVE",
 };
 
 const char *tgsi_return_type_names[TGSI_RETURN_TYPE_COUNT] =
index bf2a508dce2f51e647a7eb4c9e67bf61e8ecde53..fbf6869f885506c9f75f48ace7ef40749e06cc85 100644 (file)
@@ -3804,6 +3804,13 @@ When enabled, the input for TGSI_SEMANTIC_SAMPLEMASK will exclude samples
 that have failed the depth/stencil tests. This is only valid when
 FS_EARLY_DEPTH_STENCIL is also specified.
 
+LAYER_VIEWPORT_RELATIVE
+"""""""""""""""""""""""
+
+When enabled, the TGSI_SEMATNIC_LAYER output value is relative to the
+current viewport. This is especially useful in conjunction with
+TGSI_SEMANTIC_VIEWPORT_MASK.
+
 
 Texture Sampling and Texture Formats
 ------------------------------------
index 04a34f2bc9d4d8c0023e1ad7533bece67e07e2c0..7c5828ca8634079ec75e83669b82c74f0cd186ae 100644 (file)
@@ -307,6 +307,7 @@ enum tgsi_property_name {
    TGSI_PROPERTY_MUL_ZERO_WINS,
    TGSI_PROPERTY_VS_BLIT_SGPRS_AMD,
    TGSI_PROPERTY_CS_USER_DATA_COMPONENTS_AMD,
+   TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE,
    TGSI_PROPERTY_COUNT,
 };