Mesa (master): i965: Increase MaxClipPlanes to 8 for gen6+.
Paul Berry
stereotype441 at kemper.freedesktop.org
Fri Sep 23 22:43:48 UTC 2011
Module: Mesa
Branch: master
Commit: 604173fb1c4c7705681e77bbd862b9f953dbc6d4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=604173fb1c4c7705681e77bbd862b9f953dbc6d4
Author: Paul Berry <stereotype441 at 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 <eric at 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
*/
More information about the mesa-commit
mailing list