summaryrefslogtreecommitdiff
path: root/vmwgfx_kms.c
diff options
context:
space:
mode:
authorSinclair Yeh <syeh@vmware.com>2017-03-28 21:08:52 -0700
committerSinclair Yeh <syeh@vmware.com>2017-03-31 09:01:13 -0700
commit0d8532ea645b9ad7275bdb79a361e1434d6966cf (patch)
tree65ae176745b5933291e4690d351ce0adb167b4d6 /vmwgfx_kms.c
parent439a184cf9ab2550b6088d3a9c6d9a78727e7587 (diff)
vmwgfx: Remove cursor clean up special case
This was necessary during atomic development and seems to be redundant now (as suspected by Dan Vetter). Leaving this in the stand alone vmwgfx for more testing but will merge with another atomic commit before upstreaming. Signed-off-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'vmwgfx_kms.c')
-rw-r--r--vmwgfx_kms.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/vmwgfx_kms.c b/vmwgfx_kms.c
index 09ca0be..5e6b197 100644
--- a/vmwgfx_kms.c
+++ b/vmwgfx_kms.c
@@ -37,15 +37,6 @@
void vmw_du_cleanup(struct vmw_display_unit *du)
{
- if (du->cursor.state && du->cursor.state->fb) {
- /*
- * On a layout change, the user mode doesn't call
- * drm_mode_cursor_ioctl() to release the cursor, so
- * we need to manualy release a reference of it.
- */
- drm_framebuffer_unreference(du->cursor.state->fb);
- }
-
drm_plane_cleanup(&du->primary);
drm_plane_cleanup(&du->cursor);