diff options
author | Dave Airlie <airlied@redhat.com> | 2011-12-21 09:50:56 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-21 09:50:56 +0000 |
commit | 4cf73129cbe001b41be2f8b56f763fbf3acaa4ce (patch) | |
tree | 2cdde82f48800ae1746775bab7e4f3c5f1fc3b88 /drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | |
parent | 3e54f5b72b44a5b905dc56442b147b0ee0475a1d (diff) | |
parent | 6abff3c78051e40130a1c653f874fb12b9d40254 (diff) | |
download | talos-obmc-linux-4cf73129cbe001b41be2f8b56f763fbf3acaa4ce.tar.gz talos-obmc-linux-4cf73129cbe001b41be2f8b56f763fbf3acaa4ce.zip |
Merge remote-tracking branch 'pfdo/drm-fixes' into drm-core-next
-next reported a messy merge, so I've merged my upstream pull into
my -next tree.
Conflicts:
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index 15a6805e48b0..f77b184be807 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c @@ -74,9 +74,10 @@ static int vmw_ldu_commit_list(struct vmw_private *dev_priv) { struct vmw_legacy_display *lds = dev_priv->ldu_priv; struct vmw_legacy_display_unit *entry; + struct vmw_display_unit *du = NULL; struct drm_framebuffer *fb = NULL; struct drm_crtc *crtc = NULL; - int i = 0; + int i = 0, ret; /* If there is no display topology the host just assumes * that the guest will set the same layout as the host. @@ -129,6 +130,25 @@ static int vmw_ldu_commit_list(struct vmw_private *dev_priv) lds->last_num_active = lds->num_active; + + /* Find the first du with a cursor. */ + list_for_each_entry(entry, &lds->active, active) { + du = &entry->base; + + if (!du->cursor_dmabuf) + continue; + + ret = vmw_cursor_update_dmabuf(dev_priv, + du->cursor_dmabuf, + 64, 64, + du->hotspot_x, + du->hotspot_y); + if (ret == 0) + break; + + DRM_ERROR("Could not update cursor image\n"); + } + return 0; } |