From: Ville Syrjälä Date: Wed, 4 Sep 2013 15:30:07 +0000 (+0300) Subject: drm/i915: Convert overlay double wide check over to pipe config X-Git-Tag: next-20130919~37^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4926cb76bd8c4fb18066862bf9e00c840db4b3d8;p=karo-tx-linux.git drm/i915: Convert overlay double wide check over to pipe config Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index ddfd0aefe0c0..8d6d0a1bf5bf 100644 --- a/drivers/gpu/drm/i915/intel_overlay.c +++ b/drivers/gpu/drm/i915/intel_overlay.c @@ -821,14 +821,11 @@ int intel_overlay_switch_off(struct intel_overlay *overlay) static int check_overlay_possible_on_crtc(struct intel_overlay *overlay, struct intel_crtc *crtc) { - drm_i915_private_t *dev_priv = overlay->dev->dev_private; - if (!crtc->active) return -EINVAL; /* can't use the overlay with double wide pipe */ - if (INTEL_INFO(overlay->dev)->gen < 4 && - (I915_READ(PIPECONF(crtc->pipe)) & (PIPECONF_DOUBLE_WIDE | PIPECONF_ENABLE)) != PIPECONF_ENABLE) + if (crtc->config.double_wide) return -EINVAL; return 0;