intel/isl: Don't reconfigure aux surfaces for MCS

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>
This commit is contained in:
Sagar Ghuge 2019-09-19 08:20:34 -07:00
parent 810fc75dab
commit 2f0fbe06e6

View 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);