]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/xe2: AuxCCS is no longer used
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 11 Aug 2023 16:06:10 +0000 (09:06 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:25 +0000 (11:40 -0500)
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 <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ring_ops.c

index 36058600e231bcd58574e52846673f4b3b756d4a..9e23293ec4d3b20b2d91eee4fded588795951450 100644 (file)
@@ -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;