Skip to content

Commit bc40cf6

Browse files
vsyrjalajnikula
authored andcommitted
drm/i915: Restore lost glk ccs w/a
We lost a CCS related w/a on glk when the display version became 10 instead of 9. Restore the correct check. Cc: Matt Roper <matthew.d.roper@intel.com> Fixes: 2b5a456 ("drm/i915/display: Simplify GLK display version tests") Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210412054607.18133-3-ville.syrjala@linux.intel.com (cherry picked from commit 0fe6637) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 604b5bc commit bc40cf6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,8 @@ intel_fb_stride_alignment(const struct drm_framebuffer *fb, int color_plane)
14031403
* require the entire fb to accommodate that to avoid
14041404
* potential runtime errors at plane configuration time.
14051405
*/
1406-
if (IS_DISPLAY_VER(dev_priv, 9) && color_plane == 0 && fb->width > 3840)
1406+
if ((IS_DISPLAY_VER(dev_priv, 9) || IS_GEMINILAKE(dev_priv)) &&
1407+
color_plane == 0 && fb->width > 3840)
14071408
tile_width *= 4;
14081409
/*
14091410
* The main surface pitch must be padded to a multiple of four

0 commit comments

Comments
 (0)