summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vs.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-09-02 14:57:18 -0700
committerPaul Berry <stereotype441@gmail.com>2011-09-23 15:32:37 -0700
commitd9cb683f81b5daefda2f8599b4ba0365cc6f009a (patch)
tree74d8c949ac4bd3b9b094d584d28173cdf80f2f00 /src/mesa/drivers/dri/i965/brw_vs.h
parentb9ef2b85b41272da9ed95071307310f9749cbf2b (diff)
downloadexternal_mesa3d-d9cb683f81b5daefda2f8599b4ba0365cc6f009a.zip
external_mesa3d-d9cb683f81b5daefda2f8599b4ba0365cc6f009a.tar.gz
external_mesa3d-d9cb683f81b5daefda2f8599b4ba0365cc6f009a.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index 28e6b42..7224423 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -49,6 +49,7 @@ struct brw_vs_prog_key {
GLuint copy_edgeflag:1;
GLuint point_coord_replace:8;
GLuint clamp_vertex_color:1;
+ GLuint uses_clip_distance:1;
};