i965: Fix error path for MCS allocation.
authorEric Anholt <eric@anholt.net>
Thu, 11 Apr 2013 17:08:56 +0000 (10:08 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2013 23:32:12 +0000 (16:32 -0700)
commitaceba66795bb0da7f09d0af6d9b766e1e52ca9cc
tree2e44098258d620c0b2a65891d689503b6b2c76a0
parent331766b9a20bdde5e10adfb0443477e5c43a14dd
i965: Fix error path for MCS allocation.

Asserts don't stop execution in release builds, so we would continue on to
use an uninitialized format value.  Just take the failure path, which
appears to continue up the call stack for a while.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c