drm/i915: Convert overlay double wide check over to pipe config

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Ville Syrjälä 2013-09-04 18:30:07 +03:00 committed by Daniel Vetter
parent b397c96b6d
commit 4926cb76bd

View File

@ -821,14 +821,11 @@ int intel_overlay_switch_off(struct intel_overlay *overlay)
static int check_overlay_possible_on_crtc(struct intel_overlay *overlay, static int check_overlay_possible_on_crtc(struct intel_overlay *overlay,
struct intel_crtc *crtc) struct intel_crtc *crtc)
{ {
drm_i915_private_t *dev_priv = overlay->dev->dev_private;
if (!crtc->active) if (!crtc->active)
return -EINVAL; return -EINVAL;
/* can't use the overlay with double wide pipe */ /* can't use the overlay with double wide pipe */
if (INTEL_INFO(overlay->dev)->gen < 4 && if (crtc->config.double_wide)
(I915_READ(PIPECONF(crtc->pipe)) & (PIPECONF_DOUBLE_WIDE | PIPECONF_ENABLE)) != PIPECONF_ENABLE)
return -EINVAL; return -EINVAL;
return 0; return 0;