i965/miptree: Allow get_aux_isl_surf when there is no aux surface

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
Jason Ekstrand 2016-07-19 16:25:50 -07:00
parent dd46c8da31
commit 67ea60db0b

View file

@ -3187,7 +3187,8 @@ intel_miptree_get_aux_isl_surf(struct brw_context *brw,
} else if (mt->fast_clear_state != INTEL_FAST_CLEAR_STATE_NO_MCS) {
*usage = ISL_AUX_USAGE_CCS_D;
} else {
unreachable("Invalid MCS miptree");
*usage = ISL_AUX_USAGE_NONE;
return;
}
/* Figure out the format and tiling of the auxiliary surface */