diff options
author | Paul Berry <stereotype441@gmail.com> | 2011-09-27 12:33:28 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2011-10-06 19:29:07 -0700 |
commit | 18e2e19b07b312c978dfbb6d336f69fa84b3ffe2 (patch) | |
tree | a3d3e6026db55557c29da31d19fa6a47185a324e /src/mesa/drivers/dri/i965/brw_vs.h | |
parent | 8f6920a7b69bd20f04f807e88c22cf1eb78b4e79 (diff) | |
download | external_mesa3d-18e2e19b07b312c978dfbb6d336f69fa84b3ffe2.zip external_mesa3d-18e2e19b07b312c978dfbb6d336f69fa84b3ffe2.tar.gz external_mesa3d-18e2e19b07b312c978dfbb6d336f69fa84b3ffe2.tar.bz2 |
i965: Make brw_compute_vue_map's userclip dependency a boolean.
Previously, brw_compute_vue_map required an argument indicating the
number of clip planes in use, but all it did with it was check if it
was nonzero.
This patch changes brw_compute_vue_map to take a boolean instead.
This allows us to avoid some unnecessary recompilation of the Gen4/5
GS and SF threads.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index a12b139..bd81764 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.h +++ b/src/mesa/drivers/dri/i965/brw_vs.h @@ -47,6 +47,12 @@ struct brw_vs_prog_key { uint8_t gl_fixed_input_size[VERT_ATTRIB_MAX]; /** + * True if at least one clip flag is enabled, regardless of whether the + * shader uses clip planes or gl_ClipDistance. + */ + GLuint userclip_active:1; + + /** * Number of user clip planes (or clip distances) that are active. */ GLuint nr_userclip:4; |