i965/gen6: Fix segfault in prepare_blend_state()
authorChad Versace <chad@chad-versace.us>
Sun, 9 Oct 2011 03:00:50 +0000 (20:00 -0700)
committerChad Versace <chad@chad-versace.us>
Tue, 18 Oct 2011 18:42:54 +0000 (11:42 -0700)
commitb48e02383e6bf8a4e1c05d11c6dce25cb796fcf4
tree1dd74f75b3770422cad3fd2e040aadc03c8a70f1
parent8c7c589c4e70d7cdcceb350aa4edd3d9eec4403e
i965/gen6: Fix segfault in prepare_blend_state()

Don't dereference the color buffer if one isn't attached.

This fixes the following Piglit tests in my experimental HiZ branch:
    glean/logicOp
    glean/paths

Note: This is a candidate for the stable branches.
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/i965/gen6_cc.c