]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: Use DISPLAY_VER over GRAPHICS_VER
authorMatt Atwood <matthew.s.atwood@intel.com>
Wed, 3 Sep 2025 17:08:21 +0000 (10:08 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 16 Sep 2025 16:14:56 +0000 (09:14 -0700)
The checks in plane_has_modifier() should check against display version
instead of graphics version.

Bspec: 67165, 70815

Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://lore.kernel.org/r/20250903170821.310143-1-matthew.s.atwood@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/display/intel_fb.c

index 22a4a1575d2236099ed8f6f69d7d86039f5328ad..69237dabdae84fca0d4cc139038dfac60c7643ee 100644 (file)
@@ -564,11 +564,11 @@ static bool plane_has_modifier(struct intel_display *display,
                return false;
 
        if (md->modifier == I915_FORMAT_MOD_4_TILED_BMG_CCS &&
-           (GRAPHICS_VER(i915) < 20 || !display->platform.dgfx))
+           (DISPLAY_VER(display) < 14 || !display->platform.dgfx))
                return false;
 
        if (md->modifier == I915_FORMAT_MOD_4_TILED_LNL_CCS &&
-           (GRAPHICS_VER(i915) < 20 || display->platform.dgfx))
+           (DISPLAY_VER(display) < 20 || display->platform.dgfx))
                return false;
 
        return true;