summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-09-06 11:48:31 +0200
committerHans de Goede <hdegoede@redhat.com>2016-09-13 10:27:12 +0200
commitdf88008f92f85ef96d9fe48ac509d027570424eb (patch)
tree7b9269a6a32be1808eb8989dd220c8d412be78d9 /dix
parentf82fd47016628e8bcdcba3aab506a919fe8c49d8 (diff)
xf86Cursor: Deal with rotation on GPU screens using a hw-cursor
When a slave-output is rotated the transformation is done on the blit from master to slave GPU, so crtc->transform_in_use is not set, but we still need to adjust the mouse position for things to work. This commit modifies xf86_crtc_transform_cursor_position to not rely on crtc->f_framebuffer_to_crtc, so that it can be used with GPU screens too and always calls it for crtcs with any form of rotation. Note not using crtc->f_framebuffer_to_crtc means that crtc->transform will not be taken into account, that is ok, because when we've a transform active hw-cursors are not used and xf86_crtc_transform_cursor_position will never get called. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'dix')
0 files changed, 0 insertions, 0 deletions