freedreno: fix segfault when no color buffer bound
authorRob Clark <robclark@freedesktop.org>
Wed, 21 Aug 2013 17:20:05 +0000 (13:20 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 24 Aug 2013 17:23:32 +0000 (13:23 -0400)
commit4c91930a257ac500029f56514c5504ad66b7cf8f
treee59ecf77c111a95bc40cc769af1ad6cfbc9748ff
parent7eeab2434499da0719cca3440f56641e34e4fff1
freedreno: fix segfault when no color buffer bound

Don't crash when no color buffer bound.  Something caught when starting
to run piglit, fixes a hanful of piglit tests.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a2xx/fd2_gmem.c
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/freedreno/freedreno_gmem.c
src/gallium/drivers/freedreno/freedreno_state.c
src/gallium/drivers/freedreno/freedreno_util.h