intel/isl: Drop extra devinfo checks for CCS support

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>
This commit is contained in:
Nanley Chery 2021-12-06 10:27:55 -05:00 committed by Marge Bot
parent 99b320fc68
commit 0733266706

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