i965: Don't upload clip planes when gl_ClipDistance is in use.
authorPaul Berry <stereotype441@gmail.com>
Fri, 2 Sep 2011 21:57:18 +0000 (14:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Sep 2011 22:32:37 +0000 (15:32 -0700)
commitd9cb683f81b5daefda2f8599b4ba0365cc6f009a
tree74d8c949ac4bd3b9b094d584d28173cdf80f2f00
parentb9ef2b85b41272da9ed95071307310f9749cbf2b
i965: Don't upload clip planes when gl_ClipDistance is in use.

When the vertex shader writes to gl_ClipDistance, we do clipping based
on clip distances rather than user clip planes, so don't waste push
constant space storing user clip planes that won't be used.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/gen6_vs_state.c