Signed-off-by: Lyude <[email protected]> Changes since v2: - Add missing string to tgsi_strings.c Changes since v3: - Reorder patch to be before we add the cap for this, since we can't have a cap for a TGSI property that doesn't exist yet - Document the actual property seperately from the cap (whoops)
Signed-off-by: Lyude <[email protected]> --- src/gallium/auxiliary/tgsi/tgsi_strings.c | 1 + src/gallium/docs/source/tgsi.rst | 7 +++++++ src/gallium/include/pipe/p_shader_tokens.h | 1 + 3 files changed, 9 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index 2640350..7ce12d3 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -151,6 +151,7 @@ const char *tgsi_property_names[TGSI_PROPERTY_COUNT] = "NUM_CLIPDIST_ENABLED", "NUM_CULLDIST_ENABLED", "FS_EARLY_DEPTH_STENCIL", + "FS_POST_DEPTH_COVERAGE", "NEXT_SHADER", "CS_FIXED_BLOCK_WIDTH", "CS_FIXED_BLOCK_HEIGHT", diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index e740476..5dcb6ba 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -3720,6 +3720,13 @@ DP3, DP4, DPH, DST, LOG, LRP, XPD, and possibly others. If there is a mismatch between shaders, then it is unspecified whether this behavior will be enabled. +FS_POST_DEPTH_COVERAGE +"""""""""""""""""""""" + +When enabled, the input for TGSI_SEMANTIC_SAMPLEMASK will exclude samples +that have failed the depth/stencil tests. As well, this implicitly enables +FS_EARLY_DEPTH_STENCIL. + 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 cb49e3b..1e08d97 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -293,6 +293,7 @@ enum tgsi_property_name { TGSI_PROPERTY_NUM_CLIPDIST_ENABLED, TGSI_PROPERTY_NUM_CULLDIST_ENABLED, TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL, + TGSI_PROPERTY_FS_POST_DEPTH_COVERAGE, TGSI_PROPERTY_NEXT_SHADER, TGSI_PROPERTY_CS_FIXED_BLOCK_WIDTH, TGSI_PROPERTY_CS_FIXED_BLOCK_HEIGHT, -- 2.9.4 _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
