iris: Create resource with aux_usage MCS_CCS
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 18 Sep 2019 20:14:31 +0000 (13:14 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Mon, 28 Oct 2019 21:02:02 +0000 (14:02 -0700)
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/gallium/drivers/iris/iris_resource.c

index 0050d2615d6c450c269210f7fb26cf824911d89f..952145aad7ed43d90051496a13c58af360f39ec4 100644 (file)
@@ -476,7 +476,8 @@ iris_resource_configure_aux(struct iris_screen *screen,
       /* Only allow a CCS modifier if the aux was created successfully. */
       res->aux.possible_usages |= 1 << res->mod_info->aux_usage;
    } else if (has_mcs) {
-      res->aux.possible_usages |= 1 << ISL_AUX_USAGE_MCS;
+      res->aux.possible_usages |=
+         1 << (has_ccs ? ISL_AUX_USAGE_MCS_CCS : ISL_AUX_USAGE_MCS);
    } else if (has_hiz) {
       res->aux.possible_usages |=
          1 << (has_ccs ? ISL_AUX_USAGE_HIZ_CCS : ISL_AUX_USAGE_HIZ);