diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-23 11:37:51 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-27 10:41:36 +0200 |
commit | e6d4e6afab55b2554c5aa8a33bc9270b92116dc7 (patch) | |
tree | 4f8200dfc50d8292375fadd5936751d34b2db249 /vmwgfx_ldu.c | |
parent | e69062e1a6d27aba62ce0bd58d191745a7d32a7a (diff) |
vmwgfx: Strip legacy cursor code
Use the atomic code only.
Also clean up the locking by taking a spinlock around the
position update.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair yeh <syeh@vmware.com>
Diffstat (limited to 'vmwgfx_ldu.c')
-rw-r--r-- | vmwgfx_ldu.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/vmwgfx_ldu.c b/vmwgfx_ldu.c index 3271cc6..7862c3c 100644 --- a/vmwgfx_ldu.c +++ b/vmwgfx_ldu.c @@ -77,10 +77,9 @@ 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, ret; + int i = 0; /* If there is no display topology the host just assumes * that the guest will set the same layout as the host. @@ -133,25 +132,6 @@ 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; } @@ -272,8 +252,6 @@ static void vmw_ldu_crtc_helper_disable(struct drm_crtc *crtc) } static const struct drm_crtc_funcs vmw_legacy_crtc_funcs = { - .cursor_set2 = vmw_du_crtc_cursor_set2, - .cursor_move = vmw_du_crtc_cursor_move, .gamma_set = vmw_du_crtc_gamma_set, .destroy = vmw_ldu_crtc_destroy, .reset = vmw_du_crtc_reset, |