[Mesa-dev] [PATCH 8/8] i965: Increase MaxClipPlanes to 8 for gen6+.

Paul Berry stereotype441 at gmail.com
Tue Sep 20 15:42:38 PDT 2011


This is necessary for GLSL 1.30 compliance.
---
 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 2589ee5..30bf2b2 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -788,6 +788,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
     */
-- 
1.7.6.2



More information about the mesa-dev mailing list