From 749b82238bbd75592cf26bca78986f594e662334 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 29 Mar 2021 11:02:56 -0700 Subject: [PATCH] isl: Enable compression with multisampled Tile64 We haven't tested the single-sampled case, so this doesn't enable any more uses of standalone CCS. This does however, allow multisampled surfaces with MCS or HIZ to get upgraded to MCS_CCS and HIZ_CCS, respectively. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/isl/isl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 07ab61b..b2de154 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -2204,7 +2204,12 @@ isl_surf_supports_ccs(const struct isl_device *dev, */ /* TODO: Handle the other tiling formats */ - if (surf->tiling != ISL_TILING_Y0 && surf->tiling != ISL_TILING_4) + if (surf->tiling != ISL_TILING_Y0 && surf->tiling != ISL_TILING_4 && + surf->tiling != ISL_TILING_64) + return false; + + /* TODO: Handle single-sampled Tile64. */ + if (surf->samples == 1 && surf->tiling == ISL_TILING_64) return false; } else { /* ISL_GFX_VER(dev) < 12 */ -- 2.7.4