intel/isl: Don't reconfigure aux surfaces for MCS
authorSagar Ghuge <sagar.ghuge@intel.com>
Thu, 19 Sep 2019 15:20:34 +0000 (08:20 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Mon, 28 Oct 2019 21:02:01 +0000 (14:02 -0700)
If aux for MCS is already configured, don't configure again.

v2: Fix missing period in commit message (Nanley Chery)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/isl/isl.c

index c756fb0c80fb185b6a3a55241198ccba45970db7..b22cd009e83d85e202a3834d8f2a698a2a144a06 100644 (file)
@@ -1773,6 +1773,9 @@ isl_surf_get_mcs_surf(const struct isl_device *dev,
    if (surf->msaa_layout != ISL_MSAA_LAYOUT_ARRAY)
       return false;
 
+   if (mcs_surf->size_B > 0)
+      return false;
+
    /* The following are true of all multisampled surfaces */
    assert(surf->samples > 1);
    assert(surf->dim == ISL_SURF_DIM_2D);