From d9cb683f81b5daefda2f8599b4ba0365cc6f009a Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 2 Sep 2011 14:57:18 -0700 Subject: 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 --- src/mesa/drivers/dri/i965/brw_vs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/dri/i965/brw_vs.h') 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; }; -- cgit v1.1