draw: implement distance culling
authorZack Rusin <zackr@vmware.com>
Thu, 6 Jun 2013 13:07:33 +0000 (09:07 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 11 Jun 2013 02:04:28 +0000 (22:04 -0400)
commitbabe35a067d1610d9032cc28eec8e16b18685621
tree9c84b9f48f59e563e3bf5162ee5bb24998129320
parent3d08eada3450aa8801aed194afea99c816dd71f0
draw: implement distance culling

Works similarly to clip distance. If the cull distance is negative
for all vertices against a specific plane then the primitive
is culled.

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/draw/draw_context.c
src/gallium/auxiliary/draw/draw_gs.c
src/gallium/auxiliary/draw/draw_gs.h
src/gallium/auxiliary/draw/draw_pipe_cull.c
src/gallium/auxiliary/draw/draw_pipe_validate.c
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_vs.c
src/gallium/auxiliary/draw/draw_vs.h