Skip to content

Commit 604b5bc

Browse files
vsyrjalajnikula
authored andcommitted
drm/i915: Restore lost glk FBC 16bpp w/a
We lost the FBC 16bpp 512byte stride requirement on glk when we switched from display version 9 to 10. Restore the w/a to avoid enabling FBC with a bad stride and thus display garbage. Cc: Matt Roper <[email protected]> Fixes: 2b5a456 ("drm/i915/display: Simplify GLK display version tests") Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 87b8c3b) Signed-off-by: Jani Nikula <[email protected]>
1 parent eef24f1 commit 604b5bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ static bool stride_is_valid(struct drm_i915_private *dev_priv,
597597
return false;
598598

599599
/* Display WA #1105: skl,bxt,kbl,cfl,glk */
600-
if (IS_DISPLAY_VER(dev_priv, 9) &&
600+
if ((IS_DISPLAY_VER(dev_priv, 9) || IS_GEMINILAKE(dev_priv)) &&
601601
modifier == DRM_FORMAT_MOD_LINEAR && stride & 511)
602602
return false;
603603

0 commit comments

Comments
 (0)