iris: Don't assume CCS_E includes CCS_D
[mesa.git] / src / gallium / drivers / iris / iris_resolve.c
index 30aa87d7f6e4d3ecfa3955521560b54cf32464ac..73f2855a8b07c5aaec8254268c19c314277e0477 100644 (file)
@@ -1439,8 +1439,9 @@ iris_resource_render_aux_usage(struct iris_context *ice,
           format_ccs_e_compat_with_resource(devinfo, res, render_format))
          return ISL_AUX_USAGE_CCS_E;
 
-      /* Otherwise, we have to fall back to CCS_D */
-      return ISL_AUX_USAGE_CCS_D;
+      /* Otherwise, we try to fall back to CCS_D */
+      if (isl_format_supports_ccs_d(devinfo, render_format))
+         return ISL_AUX_USAGE_CCS_D;
 
    default:
       return ISL_AUX_USAGE_NONE;