gallium: Add TGSI shader token for ARB_post_depth_coverage
authorLyude <lyude@redhat.com>
Wed, 24 May 2017 19:42:38 +0000 (15:42 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 3 Jun 2017 03:19:22 +0000 (23:19 -0400)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h

index 26403508ec5bed0ded35b9096e47b37f7c356077..7ce12d3655480dd86052f12e3b02c134a7b55f52 100644 (file)
@@ -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",
index e740476ff097c47898ad97e3d7520a4ba12716b5..eceaa6d64f7ca09b30654c46bc5c57b0ad235aed 100644 (file)
@@ -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. This is only valid when
+FS_EARLY_DEPTH_STENCIL is also specified.
+
 
 Texture Sampling and Texture Formats
 ------------------------------------
index cb49e3b033a0bd524e7f4c591bb21667abd6a805..1e08d973297b04af273c1c4472f1a88c4bb1f25c 100644 (file)
@@ -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,