mirror of https://gitee.com/openkylin/linux.git
drm/i915: share IVB cursor routine with Haswell
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>
This commit is contained in:
parent
c51ed787f6
commit
0cd83aa9a6
|
@ -6770,7 +6770,7 @@ static void intel_crtc_update_cursor(struct drm_crtc *crtc,
|
||||||
if (!visible && !intel_crtc->cursor_visible)
|
if (!visible && !intel_crtc->cursor_visible)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (IS_IVYBRIDGE(dev)) {
|
if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) {
|
||||||
I915_WRITE(CURPOS_IVB(pipe), pos);
|
I915_WRITE(CURPOS_IVB(pipe), pos);
|
||||||
ivb_update_cursor(crtc, base);
|
ivb_update_cursor(crtc, base);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue