From: Gustavo Padovan Date: Fri, 24 Oct 2014 13:51:34 +0000 (+0100) Subject: drm/i915: only flip frontbuffer if crtc is active X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f20df98870236b288a90fc3b65f593d3db05b17;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i915: only flip frontbuffer if crtc is active There is no point in flipping a buffer for a disabled crtc. Signed-off-by: Gustavo Padovan Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 910e8a4603fa..140bbefaac8d 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -8544,9 +8544,9 @@ static int intel_crtc_cursor_set_obj(struct drm_crtc *crtc, if (old_width != width) intel_update_watermarks(crtc); intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL); - } - intel_frontbuffer_flip(dev, INTEL_FRONTBUFFER_CURSOR(pipe)); + intel_frontbuffer_flip(dev, INTEL_FRONTBUFFER_CURSOR(pipe)); + } return 0; fail_unpin: