i965/miptree: Allow get_aux_isl_surf when there is no aux surface
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Jul 2016 23:25:50 +0000 (16:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index fbb06de162a0db455ce6b9e9cbe7ddc8e62d4a0b..1f974b3c11a161c1ac4f97189d7b07ec6732362a 100644 (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 */