drm/vmwgfx: Implement the cursor_set2 callback v2
Fixes native drm clients like Fedora 23 Wayland which now appears to be able to use cursor hotspots without strange cursor offsets. Also fixes a couple of ignored error paths. Since the core drm cursor hotspot is incompatible with the legacy vmwgfx hotspot (the core drm hotspot is reset when the drm_mode_cursor ioctl is used), we need to keep track of both and add them when the device hotspot is set. We assume that either is always zero. Signed-off-by:Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by:
Sinclair Yeh <syeh@vmware.com>
Showing
- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 1 addition, 0 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_drv.c
- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 1 addition, 0 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_drv.h
- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 51 additions, 13 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_kms.c
- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h 5 additions, 2 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_kms.h
- drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
- drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
Loading
Please register or sign in to comment