i965 VS: Change nr_userclip to nr_userclip_planes.
authorPaul Berry <stereotype441@gmail.com>
Thu, 29 Sep 2011 22:36:41 +0000 (15:36 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 7 Oct 2011 02:29:10 +0000 (19:29 -0700)
commitf4f686e825ad2d64e50fb9e2491ef60507d59c38
treef621b1b90aefbeac175e9b855756634eb0aa47c8
parent18e2e19b07b312c978dfbb6d336f69fa84b3ffe2
i965 VS: Change nr_userclip to nr_userclip_planes.

The only remaining uses of brw_vs_prog_key::nr_userclip only occurred
when using clip planes (as opposed to gl_ClipDistance).  This patch
renames the value to nr_userclip_planes and sets it to zero when
gl_ClipDistance is in use.  This avoids unnecessary VS recompiles.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/brw_vs_emit.c