From 604173fb1c4c7705681e77bbd862b9f953dbc6d4 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 13 Sep 2011 10:58:47 -0700 Subject: [PATCH] i965: Increase MaxClipPlanes to 8 for gen6+. This is necessary for GLSL 1.30 compliance. Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/intel/intel_context.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.30.2