]> 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)
commitf68ea476264a16348dd4fe67c7f15b0207db59e8
tree8233bd477d8df9b782de4c7d87682a1665c1df59
parent8934fa59eb3f8365043f588d970f857fce3ffcd2
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