]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: add hotspot support for cursors.
authorDave Airlie <airlied@redhat.com>
Thu, 20 Jun 2013 01:48:52 +0000 (11:48 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Jun 2013 23:13:39 +0000 (09:13 +1000)
commit4c813d4d759c0e6b83bfd73795e9526493556dc2
tree5cab2327d0db876f86fc72cb4acac23d58107cba
parentc19b3e238d7573cbe0bb60f4578b7d1de4a13746
drm: add hotspot support for cursors.

So it looks like for virtual hw cursors on QXL we need to inform
the "hw" device what the cursor hotspot parameters are. This
makes sense if you think the host has to draw the cursor and interpret
clicks from it. However the current modesetting interface doesn't support
passing the hotspot information from userspace.

This implements a new cursor ioctl, that takes the hotspot info as well,
userspace can try calling the new interface and if it gets -ENOSYS it means
its on an older kernel and can just fallback.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_drv.c
include/drm/drm_crtc.h
include/uapi/drm/drm.h
include/uapi/drm/drm_mode.h