iris: make surface states for CCS_D too
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Dec 2018 06:41:34 +0000 (22:41 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:12 +0000 (10:26 -0800)
CCS_E can fall back to CCS_D with incompatible format views

CCS_D is pretty useless without fast clears and we may as well use NONE,
but we're surely going to hook those up at some point, so may as well
just go ahead and do it now...

src/gallium/drivers/iris/iris_resource.c

index cce24b287298a8274e9dbf9aa7f5f6aaf9e372ec..ca09a70fc5bff0ec90c6c3ba6a1148adfb73f097 100644 (file)
@@ -572,7 +572,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
       } else if (supports_ccs(devinfo, &res->surf)) {
          if (isl_format_supports_ccs_e(devinfo, res->surf.format))
             res->aux.possible_usages |= 1 << ISL_AUX_USAGE_CCS_E;
-         else if (isl_format_supports_ccs_d(devinfo, res->surf.format))
+
+         if (isl_format_supports_ccs_d(devinfo, res->surf.format))
             res->aux.possible_usages |= 1 << ISL_AUX_USAGE_CCS_D;
       }
    }