diff options
author | Paul Berry <stereotype441@gmail.com> | 2011-09-29 15:36:41 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2011-10-06 19:29:10 -0700 |
commit | f4f686e825ad2d64e50fb9e2491ef60507d59c38 (patch) | |
tree | f621b1b90aefbeac175e9b855756634eb0aa47c8 /src/mesa/drivers/dri/i965/brw_vs.h | |
parent | 18e2e19b07b312c978dfbb6d336f69fa84b3ffe2 (diff) | |
download | external_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.h | 5 |
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 |