diff options
author | Zack Rusin <[email protected]> | 2013-06-06 09:07:33 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-06-10 22:04:28 -0400 |
commit | babe35a067d1610d9032cc28eec8e16b18685621 (patch) | |
tree | 9c84b9f48f59e563e3bf5162ee5bb24998129320 /src/gallium/auxiliary/draw/draw_gs.h | |
parent | 3d08eada3450aa8801aed194afea99c816dd71f0 (diff) |
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 <[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/auxiliary/draw/draw_gs.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.h b/src/gallium/auxiliary/draw/draw_gs.h index 543b32d4202..05d666d752d 100644 --- a/src/gallium/auxiliary/draw/draw_gs.h +++ b/src/gallium/auxiliary/draw/draw_gs.h @@ -68,6 +68,7 @@ struct draw_geometry_shader { unsigned position_output; unsigned viewport_index_output; unsigned clipdistance_output[2]; + unsigned culldistance_output[2]; unsigned max_output_vertices; unsigned primitive_boundary; |