]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/vmwgfx: Calculate the cursor position based on the crtc gui origin
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 12 Feb 2016 08:57:15 +0000 (09:57 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 14 Mar 2016 13:59:10 +0000 (14:59 +0100)
commit6dd687b42fff7aa681978e117cf3051de0d023a5
treedcaf59129704f1a2fb28bf97ccdbf936a1f74121
parent76404ac0a2c358dd63b8ed32e4df69f3b781b7eb
drm/vmwgfx: Calculate the cursor position based on the crtc gui origin

Base the cursor position on the coordinate of the crtc origin in the
gui coordinate system rather than in the framebuffer coordinate system.

With explicit placement, these may differ (for example when two crtcs
scan out of the same framebuffer location).

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c