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>
This commit is contained in:
Eric Anholt 2013-04-11 10:08:56 -07:00
parent 331766b9a2
commit aceba66795

View file

@ -976,7 +976,7 @@ intel_miptree_alloc_mcs(struct intel_context *intel,
break;
default:
assert(!"Unrecognized sample count in intel_miptree_alloc_mcs");
break;
return false;
};
/* From the Ivy Bridge PRM, Vol4 Part1 p76, "MCS Base Address":