diff options
author | Zack Rusin <[email protected]> | 2013-06-06 09:04:11 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-06-10 22:04:28 -0400 |
commit | 3d08eada3450aa8801aed194afea99c816dd71f0 (patch) | |
tree | 58e2e1f5f9f7d23dc3ce99418022b9178f8b0a34 /src/gallium/include | |
parent | 0a3779d95537343505200ad096acf135dcd81b80 (diff) |
gallium: add a cull distance semantic
cull distance is analogous to clip distance. If a register is
given this semantic, then the values in it are assumed to be a
float32 distance to a plane. Primitives will be completely
discarded if the plane distance for all of the vertices in
the primitive are < 0.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index c984d50abe9..4a6a57fef11 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -166,7 +166,8 @@ struct tgsi_declaration_interp #define TGSI_SEMANTIC_PCOORD 20 /**< point sprite coordinate */ #define TGSI_SEMANTIC_VIEWPORT_INDEX 21 /**< viewport index */ #define TGSI_SEMANTIC_LAYER 22 /**< layer (rendertarget index) */ -#define TGSI_SEMANTIC_COUNT 23 /**< number of semantic values */ +#define TGSI_SEMANTIC_CULLDIST 23 +#define TGSI_SEMANTIC_COUNT 24 /**< number of semantic values */ struct tgsi_declaration_semantic { |