[PATCH xserver v9] xf86Cursor: Deal with rotation on GPU screens using a hw-cursor

Michel Dänzer michel at daenzer.net
Tue Sep 13 08:11:45 UTC 2016


On 13/09/16 09:51 AM, Michel Dänzer wrote:
> On 12/09/16 08:24 PM, Hans de Goede wrote:
>> 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
>> to and always calls it for cursors on GPU screens.
>>
>> 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 at redhat.com>
>> ---
>> Changes in v9:
>> -Write out the cursor coordinate conversion instead of playing tricks
>>  with (ab)using xf86_crtc_rotate_coord_back.

Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160913/7be4a617/attachment.sig>


More information about the xorg-devel mailing list