Mesa (master): Increase MAX_CLIP_PLANES to 8

Paul Berry stereotype441 at kemper.freedesktop.org
Tue Sep 20 21:56:02 UTC 2011


Module: Mesa
Branch: master
Commit: 61b2d01101ee6d42c11a2547909460a5c21588a0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=61b2d01101ee6d42c11a2547909460a5c21588a0

Author: Paul Berry <stereotype441 at gmail.com>
Date:   Wed Sep  7 18:28:32 2011 -0700

Increase MAX_CLIP_PLANES to 8

This will allow drivers to increase ctx->Const.MaxClipPlanes to 8,
which is required for GLSL-1.30 compliance.

No driver behavior should be affected.  However, many data structures
use MAX_CLIP_PLANES as an array size, so these arrays will get
slightly larger.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/config.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index 91aef90..61b0c16 100644
--- a/src/mesa/main/config.h
+++ b/src/mesa/main/config.h
@@ -61,8 +61,11 @@
 /** Maximum number of lights */
 #define MAX_LIGHTS 8
 
-/** Maximum user-defined clipping planes */
-#define MAX_CLIP_PLANES 6
+/**
+ * Maximum number of user-defined clipping planes supported by any driver in
+ * Mesa.  This is used to size arrays.
+ */
+#define MAX_CLIP_PLANES 8
 
 /** Maximum pixel map lookup table size */
 #define MAX_PIXEL_MAP_TABLE 256




More information about the mesa-commit mailing list