gallium: add a cull distance semantic
authorZack Rusin <zackr@vmware.com>
Thu, 6 Jun 2013 13:04:11 +0000 (09:04 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 11 Jun 2013 02:04:28 +0000 (22:04 -0400)
commit3d08eada3450aa8801aed194afea99c816dd71f0
tree58e2e1f5f9f7d23dc3ce99418022b9178f8b0a34
parent0a3779d95537343505200ad096acf135dcd81b80
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 <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h