drm/i915/skl: Allow universal planes to position
authorSonika Jindal <sonika.jindal@intel.com>
Fri, 10 Apr 2015 09:07:28 +0000 (14:37 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 14:16:31 +0000 (16:16 +0200)
Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index d6698e5..8111013 100644 (file)
@@ -12571,16 +12571,21 @@ intel_check_primary_plane(struct drm_plane *plane,
        struct drm_rect *dest = &state->dst;
        struct drm_rect *src = &state->src;
        const struct drm_rect *clip = &state->clip;
+       bool can_position = false;
        int ret;
 
        crtc = crtc ? crtc : plane->crtc;
        intel_crtc = to_intel_crtc(crtc);
 
+       if (INTEL_INFO(dev)->gen >= 9)
+               can_position = true;
+
        ret = drm_plane_helper_check_update(plane, crtc, fb,
                                            src, dest, clip,
                                            DRM_PLANE_HELPER_NO_SCALING,
                                            DRM_PLANE_HELPER_NO_SCALING,
-                                           false, true, &state->visible);
+                                           can_position, true,
+                                           &state->visible);
        if (ret)
                return ret;