From: Paul Berry Date: Tue, 13 Sep 2011 17:58:47 +0000 (-0700) Subject: i965: Increase MaxClipPlanes to 8 for gen6+. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=604173fb1c4c7705681e77bbd862b9f953dbc6d4;p=mesa.git i965: Increase MaxClipPlanes to 8 for gen6+. This is necessary for GLSL 1.30 compliance. Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index caac24afc90..5625a787b68 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -794,6 +794,9 @@ intelInitContext(struct intel_context *intel, ctx->Const.MaxSamples = 1.0; + if (intel->gen >= 6) + ctx->Const.MaxClipPlanes = 8; + /* reinitialize the context point state. * It depend on constants in __struct gl_contextRec::Const */