gallium: add TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE

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>
This commit is contained in:
Ilia Mirkin
2020-04-10 23:45:41 -04:00
parent 17308c1014
commit 8f191e0c37
3 changed files with 9 additions and 0 deletions

View File

@@ -163,6 +163,7 @@ const char *tgsi_property_names[TGSI_PROPERTY_COUNT] =
"MUL_ZERO_WINS", "MUL_ZERO_WINS",
"VS_BLIT_SGPRS_AMD", "VS_BLIT_SGPRS_AMD",
"CS_USER_DATA_COMPONENTS_AMD", "CS_USER_DATA_COMPONENTS_AMD",
"LAYER_VIEWPORT_RELATIVE",
}; };
const char *tgsi_return_type_names[TGSI_RETURN_TYPE_COUNT] = const char *tgsi_return_type_names[TGSI_RETURN_TYPE_COUNT] =

View 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 that have failed the depth/stencil tests. This is only valid when
FS_EARLY_DEPTH_STENCIL is also specified. 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 Texture Sampling and Texture Formats
------------------------------------ ------------------------------------

View File

@@ -307,6 +307,7 @@ enum tgsi_property_name {
TGSI_PROPERTY_MUL_ZERO_WINS, TGSI_PROPERTY_MUL_ZERO_WINS,
TGSI_PROPERTY_VS_BLIT_SGPRS_AMD, TGSI_PROPERTY_VS_BLIT_SGPRS_AMD,
TGSI_PROPERTY_CS_USER_DATA_COMPONENTS_AMD, TGSI_PROPERTY_CS_USER_DATA_COMPONENTS_AMD,
TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE,
TGSI_PROPERTY_COUNT, TGSI_PROPERTY_COUNT,
}; };