mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
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:
parent
331766b9a2
commit
aceba66795
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue