svga: don't use uninitialized framebuffer state
authorBrian Paul <brianp@vmware.com>
Thu, 11 Oct 2012 00:31:52 +0000 (18:31 -0600)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:26 +0000 (15:08 +0100)
commit409cb4fc736ee34f55062d8a2c61a28d96c44a79
tree5dded148ab0d0dee21c80fa9289f2ad74611fdaf
parentb22de71c1bc2530e139d75d934e203f4eee89f41
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>
(cherry picked from commit 60a9390978db0a3c9b0170c726ebe684baf75734)
src/gallium/drivers/svga/svga_pipe_misc.c