i965: Fix bit allocation for number of color regions for ARB_draw_buffers.
authorEric Anholt <eric@anholt.net>
Sun, 23 May 2010 20:35:50 +0000 (13:35 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 23 May 2010 23:59:07 +0000 (16:59 -0700)
If you used all 4 color targets we currently support, we would see 0
and end up just writing the first output.  Give enough bits that we
can do the maximum of 16.

Fixes piglit fbo-drawbuffers-maxtargets.

src/mesa/drivers/dri/i965/brw_wm.h

index 5aade1c4e690e0fe22cfe5cbff45b2790b108573..277b6de44250851320d51cf580704054005ebb79 100644 (file)
@@ -67,7 +67,7 @@ struct brw_wm_prog_key {
    GLuint flat_shade:1;
    GLuint linear_color:1;  /**< linear interpolation vs perspective interp */
    GLuint runtime_check_aads_emit:1;
-   GLuint nr_color_regions:2;
+   GLuint nr_color_regions:5;
    
    GLbitfield proj_attrib_mask; /**< one bit per fragment program attribute */
    GLuint shadowtex_mask:16;