From: Nicolai Hähnle Date: Fri, 11 Mar 2016 23:11:22 +0000 (-0500) Subject: tgsi: add TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e526f930aa5d1c6b022cde051bed40d5df9023d4;p=mesa.git tgsi: add TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL Reviewed-by: Ilia Mirkin Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index b15ae69cf7a..6bd1a2e14d2 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -144,6 +144,7 @@ const char *tgsi_property_names[TGSI_PROPERTY_COUNT] = "TES_POINT_MODE", "NUM_CLIPDIST_ENABLED", "NUM_CULLDIST_ENABLED", + "FS_EARLY_DEPTH_STENCIL", }; const char *tgsi_return_type_names[TGSI_RETURN_TYPE_COUNT] = diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 489cbb0bc2f..af2df2251da 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -3206,6 +3206,12 @@ NUM_CULLDIST_ENABLED How many cull distance scalar outputs are enabled. +FS_EARLY_DEPTH_STENCIL +"""""""""""""""""""""" + +Whether depth test, stencil test, and occlusion query should run before +the fragment shader (regardless of fragment shader side effects). Corresponds +to GLSL early_fragment_tests. Texture Sampling and Texture Formats ------------------------------------ diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 34e491e4b93..7a34841088a 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -277,7 +277,8 @@ union tgsi_immediate_data #define TGSI_PROPERTY_TES_POINT_MODE 14 #define TGSI_PROPERTY_NUM_CLIPDIST_ENABLED 15 #define TGSI_PROPERTY_NUM_CULLDIST_ENABLED 16 -#define TGSI_PROPERTY_COUNT 17 +#define TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL 17 +#define TGSI_PROPERTY_COUNT 18 struct tgsi_property { unsigned Type : 4; /**< TGSI_TOKEN_TYPE_PROPERTY */