gallium/draw: add limits to the clip and cull distances
authorZack Rusin <zackr@vmware.com>
Tue, 11 Jun 2013 03:36:59 +0000 (23:36 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 13 Jun 2013 16:13:11 +0000 (12:13 -0400)
commit5507c11f85dda4fbcdc9b36494551c933471a070
treeded8a6152801200b5b6d79f02a180f838e7af763
parentb63eeaf7b7df83a2c52c5ddb701454fd8a49b987
gallium/draw: add limits to the clip and cull distances

There are strict limits on those registers. Define the maximums
and use them instead of magic numbers. Also allows us to add
some extra sanity checks.
Suggested by Brian.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@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_vs.c
src/gallium/auxiliary/draw/draw_vs.h
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_state.h