intel/isl: Drop extra devinfo checks for CCS support
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 6 Dec 2021 15:27:55 +0000 (10:27 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Dec 2021 23:31:23 +0000 (23:31 +0000)
These checks are done in isl_format_supports_ccs_*. Since
isl_surf_supports_ccs calls these functions, it doesn't need to check
them itself.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14082>

src/intel/isl/isl.c

index 2c980e3..3e06463 100644 (file)
@@ -2121,15 +2121,6 @@ isl_surf_supports_ccs(const struct isl_device *dev,
                       const struct isl_surf *surf,
                       const struct isl_surf *hiz_or_mcs_surf)
 {
-   /* CCS support does not exist prior to Gfx7 */
-   if (ISL_GFX_VER(dev) <= 6)
-      return false;
-
-   /* Wa_22011186057: Disable compression on ADL-P A0 */
-   if (dev->info->platform == INTEL_PLATFORM_ADL && dev->info->gt == 2 &&
-       dev->info->revision == 0)
-      return false;
-
    if (surf->usage & ISL_SURF_USAGE_DISABLE_AUX_BIT)
       return false;