]> git.baikalelectronics.ru Git - 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)
commitb0e084ff03351f100a7ebbe2407a96f8d2fb18c1
treedcaf59129704f1a2fb28bf97ccdbf936a1f74121
parentc9b2cdaea3c007f5e4bd3ba90d11afd17c724014
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