Module: Mesa Branch: master Commit: 604173fb1c4c7705681e77bbd862b9f953dbc6d4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=604173fb1c4c7705681e77bbd862b9f953dbc6d4
Author: Paul Berry <stereotype...@gmail.com> Date: Tue Sep 13 10:58:47 2011 -0700 i965: Increase MaxClipPlanes to 8 for gen6+. This is necessary for GLSL 1.30 compliance. Reviewed-by: Eric Anholt <e...@anholt.net> --- src/mesa/drivers/dri/intel/intel_context.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index caac24a..5625a78 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 */ _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit