iris: Allow resolving clear color of CCS_D surfaces.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 3 Jul 2019 16:37:47 +0000 (09:37 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 17 Jul 2019 21:53:16 +0000 (14:53 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/gallium/drivers/iris/iris_resolve.c

index 87c9d64561f77d26d7089eb39a3cd06067db9d41..fb07d169f8dc490cac18c591a0cfd0406d2798ce 100644 (file)
@@ -756,9 +756,8 @@ get_ccs_d_resolve_op(enum isl_aux_state aux_state,
 {
    assert(aux_usage == ISL_AUX_USAGE_NONE || aux_usage == ISL_AUX_USAGE_CCS_D);
 
-   const bool ccs_supported = aux_usage == ISL_AUX_USAGE_CCS_D;
-
-   assert(ccs_supported == fast_clear_supported);
+   const bool ccs_supported =
+      (aux_usage == ISL_AUX_USAGE_CCS_D) && fast_clear_supported;
 
    switch (aux_state) {
    case ISL_AUX_STATE_CLEAR:
@@ -791,9 +790,6 @@ get_ccs_e_resolve_op(enum isl_aux_state aux_state,
           aux_usage == ISL_AUX_USAGE_CCS_D ||
           aux_usage == ISL_AUX_USAGE_CCS_E);
 
-   if (aux_usage == ISL_AUX_USAGE_CCS_D)
-      assert(fast_clear_supported);
-
    switch (aux_state) {
    case ISL_AUX_STATE_CLEAR:
    case ISL_AUX_STATE_PARTIAL_CLEAR: