]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: reapply cursor after SetCrtc calls
authorRay Strode <rstrode@redhat.com>
Fri, 9 Sep 2016 15:09:05 +0000 (11:09 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 20 Sep 2016 12:25:37 +0000 (14:25 +0200)
commitb2ae456ceed3cf3e837c4100af8b715ab9326561
tree8233bd477d8df9b782de4c7d87682a1665c1df59
parent6b0a43c3ae9c74893c1cad53cd64fd6c34aa1c4d
drm/qxl: reapply cursor after SetCrtc calls

The qxl driver currently destroys and recreates the
qxl "primary" any time the first crtc is set.

A side-effect of destroying the primary is mouse state
associated with the crtc is lost, which leads to
disappearing mouse cursors on wayland sessions.

This commit changes the driver to reapply the cursor
any time SetCrtc is called. It achieves this by keeping
a reference to the cursor bo on the qxl_crtc struct.

Signed-off-by: Ray Strode <rstrode@redhat.com>
Message-id: 1473433745-11016-1-git-send-email-halfline@gmail.com

https://bugzilla.redhat.com/show_bug.cgi?id=1200901
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c
drivers/gpu/drm/qxl/qxl_drv.h