Skip to content

Commit

Permalink
drm/i915: Don't call gen8_fbc_sw_flush() on chv
Browse files Browse the repository at this point in the history
CHV doesn't have FBC, so don't go calling gen8_fbc_sw_flush() on it.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[danvet: Add a FIXME comment while at it that we should rework this a
lot more.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ville Syrjälä authored and Daniel Vetter committed Sep 3, 2014
1 parent 3d45eb8 commit c317adc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c317adc

Please sign in to comment.