i965: Fix a hardcoded user clip plane count.
authorPaul Berry <stereotype441@gmail.com>
Sat, 24 Sep 2011 04:27:00 +0000 (21:27 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 28 Sep 2011 18:38:03 +0000 (11:38 -0700)
Now that i965 supports 8 clip planes instead of 6, the size of the
brw_vs_compile::userplane array needs to be increased to 8.  Changed
the array size to MAX_CLIP_PLANES so that if the number changes again
in the future, this array size won't be missed.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs.h

index 722442384dcd80f09da27568b94d2f4c5b5143e0..4b3103ff1b63478f2ac6ba873961489f0f70615e 100644 (file)
@@ -81,7 +81,7 @@ struct brw_vs_compile {
        struct brw_reg reg;
    } output_regs[128];
 
-   struct brw_reg userplane[6];
+   struct brw_reg userplane[MAX_CLIP_PLANES];
 
    /** we may need up to 3 constants per instruction (if use_const_buffer) */
    struct {