i965: Remove bogus assertion on MAX_CLIP_PLANES.
authorPaul Berry <stereotype441@gmail.com>
Tue, 13 Sep 2011 22:40:07 +0000 (15:40 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Sep 2011 21:51:07 +0000 (14:51 -0700)
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.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_curbe.c

index b9a4beb12366e843bb9c2cc15386a919d355de41..2ee2b464ed73e906da32e7a22abaea7e8249a81c 100644 (file)
@@ -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];