[Mesa-dev] [PATCH 2/5] i965: Remove bogus assertion on MAX_CLIP_PLANES.

Paul Berry stereotype441 at gmail.com
Wed Sep 14 12:49:31 PDT 2011


This patch removes the assertion "MAX_CLIP_PLANES == 6" from the i965
driver.  This assertion is unnecessary; nothing in the driver requires
MAX_CLIP_PLANES to be 6.
---
 src/mesa/drivers/dri/i965/brw_curbe.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c
index b9a4beb..2ee2b46 100644
--- a/src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/src/mesa/drivers/dri/i965/brw_curbe.c
@@ -227,7 +227,6 @@ static void prepare_constant_buffer(struct brw_context *brw)
       /* Clip planes: _NEW_TRANSFORM plus _NEW_PROJECTION to get to
        * clip-space:
        */
-      assert(MAX_CLIP_PLANES == 6);
       for (j = 0; j < MAX_CLIP_PLANES; j++) {
 	 if (ctx->Transform.ClipPlanesEnabled & (1<<j)) {
 	    buf[offset + i * 4 + 0] = ctx->Transform._ClipUserPlane[j][0];
-- 
1.7.6



More information about the mesa-dev mailing list