diff options
author | Lyude <[email protected]> | 2017-05-24 15:42:38 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-06-02 23:19:22 -0400 |
commit | af788a82d50d0251fe29e205c25a4d29234709ff (patch) | |
tree | 9309482347271ac30fc3d366ce0db087487a60b9 | |
parent | 245912b684b862d47cde10052b137d76a55d0bd3 (diff) |
gallium: Add TGSI shader token for ARB_post_depth_coverage
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_strings.c | 1 | ||||
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 7 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index 26403508ec5..7ce12d36554 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 e740476ff09..eceaa6d64f7 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. This is only valid when +FS_EARLY_DEPTH_STENCIL is also specified. + 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 cb49e3b033a..1e08d973297 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, |