summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-12-04 09:53:00 +0100
committerJakob Bornecrantz <jakob@vmware.com>2009-12-04 09:54:51 +0100
commitcd4d806a47d2cbb706a9f1cd49d990fcb803efb6 (patch)
treed474ed3cd47ae8cf9c09adb40430407d51783411 /src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c
parent12fdef20b02595c10cec91aad75abe6ca59f5513 (diff)
vmware/xorg: Give kernel infromation about cursor bypass
Diffstat (limited to 'src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c')
-rw-r--r--src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c b/src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c
index 3cac5b7760c..7ec651db05d 100644
--- a/src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c
+++ b/src/gallium/winsys/drm/vmware/xorg/vmw_ioctl.c
@@ -54,6 +54,23 @@ struct vmw_dma_buffer
uint32_t size;
};
+int
+vmw_ioctl_cursor_bypass(struct vmw_driver *vmw, int xhot, int yhot)
+{
+ struct drm_vmw_cursor_bypass_arg arg;
+ int ret;
+
+ memset(&arg, 0, sizeof(arg));
+ arg.flags = DRM_VMW_CURSOR_BYPASS_ALL;
+ arg.xhot = xhot;
+ arg.yhot = yhot;
+
+ ret = drmCommandWriteRead(vmw->fd, DRM_VMW_CURSOR_BYPASS,
+ &arg, sizeof(arg));
+
+ return ret;
+}
+
struct vmw_dma_buffer *
vmw_ioctl_buffer_create(struct vmw_driver *vmw, uint32_t size, unsigned *handle)
{