From: Ville Syrjälä Date: Wed, 3 Sep 2014 11:09:50 +0000 (+0300) Subject: drm/i915: Don't call gen8_fbc_sw_flush() on chv X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c317adcd58cdc05badd73db901c677164050ab6c;p=linux-beck.git drm/i915: Don't call gen8_fbc_sw_flush() on chv CHV doesn't have FBC, so don't go calling gen8_fbc_sw_flush() on it. Cc: Rodrigo Vivi Signed-off-by: Ville Syrjälä [danvet: Add a FIXME comment while at it that we should rework this a lot more.] Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index d49d639bd383..b8a00ed67e09 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -9098,7 +9098,12 @@ void intel_frontbuffer_flush(struct drm_device *dev, intel_edp_psr_flush(dev, frontbuffer_bits); - if (IS_GEN8(dev)) + /* + * FIXME: Unconditional fbc flushing here is a rather gross hack and + * needs to be reworked into a proper frontbuffer tracking scheme like + * psr employs. + */ + if (IS_BROADWELL(dev)) gen8_fbc_sw_flush(dev, FBC_REND_CACHE_CLEAN); }