svga: don't use uninitialized framebuffer state
authorBrian Paul <brianp@vmware.com>
Thu, 11 Oct 2012 00:31:52 +0000 (18:31 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Oct 2012 15:13:59 +0000 (09:13 -0600)
commit60a9390978db0a3c9b0170c726ebe684baf75734
treeaa22411d0e2ca299295dfcba56df89c50e72e212
parent6c53ec1ef279bd346ec8b59f44520ca79f886c93
svga: don't use uninitialized framebuffer state

Only the first 'nr_cbufs' color buffers in the pipe_framebuffer_state are
valid.  The rest of the color buffer pointers might be unitialized.
Fixes a regression in the piglit fbo-srgb-blit test since changes in the
gallium blitter code.

NOTE: This is a candidate for the 9.0 branch (just to be safe).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_pipe_misc.c