From: Matt Roper Date: Fri, 11 Aug 2023 16:06:10 +0000 (-0700) Subject: drm/xe/xe2: AuxCCS is no longer used X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=be6dd3c8e884f7b1a9f76c3ad1efd068b981f7d5;p=linux.git drm/xe/xe2: AuxCCS is no longer used Starting with Xe2, all platforms (including igpu platforms) use FlatCCS compression rather than AuxCCS. Similar to PVC, any future platforms that don't support FlatCCS should not attempt to fall back to AuxCCS programming. Signed-off-by: Matt Roper Signed-off-by: Lucas De Marchi Reviewed-by: Balasubramani Vivekanandan Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_ring_ops.c b/drivers/gpu/drm/xe/xe_ring_ops.c index 36058600e231b..9e23293ec4d3b 100644 --- a/drivers/gpu/drm/xe/xe_ring_ops.c +++ b/drivers/gpu/drm/xe/xe_ring_ops.c @@ -243,9 +243,11 @@ static bool has_aux_ccs(struct xe_device *xe) { /* * PVC is a special case that has no compression of either type - * (FlatCCS or AuxCCS). + * (FlatCCS or AuxCCS). Also, AuxCCS is no longer used from Xe2 + * onward, so any future platforms with no FlatCCS will not have + * AuxCCS either. */ - if (xe->info.platform == XE_PVC) + if (GRAPHICS_VER(xe) >= 20 || xe->info.platform == XE_PVC) return false; return !xe->info.has_flat_ccs;