summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vs.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-09-29 15:36:41 -0700
committerPaul Berry <stereotype441@gmail.com>2011-10-06 19:29:10 -0700
commitf4f686e825ad2d64e50fb9e2491ef60507d59c38 (patch)
treef621b1b90aefbeac175e9b855756634eb0aa47c8 /src/mesa/drivers/dri/i965/brw_vs.h
parent18e2e19b07b312c978dfbb6d336f69fa84b3ffe2 (diff)
downloadexternal_mesa3d-f4f686e825ad2d64e50fb9e2491ef60507d59c38.zip
external_mesa3d-f4f686e825ad2d64e50fb9e2491ef60507d59c38.tar.gz
external_mesa3d-f4f686e825ad2d64e50fb9e2491ef60507d59c38.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index bd81764..b8d11df 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -53,9 +53,10 @@ struct brw_vs_prog_key {
GLuint userclip_active:1;
/**
- * Number of user clip planes (or clip distances) that are active.
+ * Number of user clip planes active. Zero if the shader uses
+ * gl_ClipDistance.
*/
- GLuint nr_userclip:4;
+ GLuint nr_userclip_planes:4;
/**
* True if the shader uses gl_ClipDistance, regardless of whether any clip