]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Mark the cursor and the overlay as being part of the display planes
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Mar 2011 23:59:51 +0000 (16:59 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Jun 2011 04:51:18 +0000 (21:51 -0700)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_overlay.c

index e32fb89b3165ef5a812e54dc76220f83e1498d68..f79863a9a6934cf3b32e2b6dba0bf3a356f66575 100644 (file)
@@ -5440,7 +5440,7 @@ static int intel_crtc_cursor_set(struct drm_crtc *crtc,
                        goto fail_locked;
                }
 
-               ret = i915_gem_object_set_to_gtt_domain(obj, 0);
+               ret = i915_gem_object_set_to_display_plane(obj, NULL);
                if (ret) {
                        DRM_ERROR("failed to move cursor bo into the GTT\n");
                        goto fail_unpin;
index a670c006982e5056e418f81aaec1d439a589a7ae..e0903c5f0ca270a17862a1202a5b46a62aaf81bc 100644 (file)
@@ -777,7 +777,7 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay,
        if (ret != 0)
                return ret;
 
-       ret = i915_gem_object_set_to_gtt_domain(new_bo, 0);
+       ret = i915_gem_object_set_to_display_plane(new_bo, NULL);
        if (ret != 0)
                goto out_unpin;