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 <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14431>
This commit is contained in:
Nanley Chery 2021-03-29 11:02:56 -07:00 committed by Marge Bot
parent 792e294572
commit 749b82238b

View file

@ -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 */