From: jsg Date: Mon, 1 Jan 2024 23:53:46 +0000 (+0000) Subject: drm/i915/dpt: Only do the POT stride remap when using DPT X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c4c55bbfc3ffccd33c38cceb1aa94b2904c9107a;p=openbsd drm/i915/dpt: Only do the POT stride remap when using DPT From Ville Syrjala 52c1a67dd3039ba254484cb7740d9079663a80bd in linux-6.1.y/6.1.70 ef5cb493a9acd7d97870d6e542020980ae3f3483 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/display/intel_fb.c b/sys/dev/pci/drm/i915/display/intel_fb.c index 8605bbfa6cb..4f7502d82bf 100644 --- a/sys/dev/pci/drm/i915/display/intel_fb.c +++ b/sys/dev/pci/drm/i915/display/intel_fb.c @@ -1176,7 +1176,7 @@ bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb) { struct drm_i915_private *i915 = to_i915(fb->base.dev); - return IS_ALDERLAKE_P(i915) && fb->base.modifier != DRM_FORMAT_MOD_LINEAR; + return IS_ALDERLAKE_P(i915) && intel_fb_uses_dpt(&fb->base); } static int intel_fb_pitch(const struct intel_framebuffer *fb, int color_plane, unsigned int rotation)