drm/i915: share IVB cursor routine with Haswell
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Fri, 13 Apr 2012 20:08:48 +0000 (17:08 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Apr 2012 10:13:46 +0000 (12:13 +0200)
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 0ef44720af97cd252eb5d275705cb4c7361cffb5..c67eb7784aa8c0468f836babc2e99a8931e99084 100644 (file)
@@ -6770,7 +6770,7 @@ static void intel_crtc_update_cursor(struct drm_crtc *crtc,
        if (!visible && !intel_crtc->cursor_visible)
                return;
 
-       if (IS_IVYBRIDGE(dev)) {
+       if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) {
                I915_WRITE(CURPOS_IVB(pipe), pos);
                ivb_update_cursor(crtc, base);
        } else {