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)
commit08b42bc97d77ff1ea7eefe4ec57997b80fb9b458
tree76b382d77131ec8b6d6a36d7963724b96fe1b963
parentfa552261ea1795503d051864af6cdf05cb7197ae
i965: Fix bit allocation for number of color regions for ARB_draw_buffers.

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