From: Ville Syrjälä Date: Tue, 1 Oct 2013 15:02:21 +0000 (+0300) Subject: drm/i915: Flush primary plane changes in sprite code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fc9f5996340a637665ccb4faa69aab498dc4067;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i915: Flush primary plane changes in sprite code Flush the primary plane changes when enabling/disabling the primary plane in response to sprite visibility. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 76d0e2f5c4aa..e001d2c35c39 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -527,6 +527,7 @@ intel_enable_primary(struct drm_crtc *crtc) intel_crtc->primary_disabled = false; I915_WRITE(reg, I915_READ(reg) | DISPLAY_PLANE_ENABLE); + intel_flush_primary_plane(dev_priv, intel_crtc->plane); /* * FIXME IPS should be fine as long as one plane is @@ -571,6 +572,7 @@ intel_disable_primary(struct drm_crtc *crtc) hsw_disable_ips(intel_crtc); I915_WRITE(reg, I915_READ(reg) & ~DISPLAY_PLANE_ENABLE); + intel_flush_primary_plane(dev_priv, intel_crtc->plane); } static int