From: Michel Dänzer <[email protected]> This will disable the HW cursor while a transform is active on the CRTC.
Signed-off-by: Michel Dänzer <[email protected]> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c index 0d34ca1..4f0a415 100644 --- a/hw/xfree86/drivers/modesetting/drmmode_display.c +++ b/hw/xfree86/drivers/modesetting/drmmode_display.c @@ -522,6 +522,11 @@ drmmode_set_cursor(xf86CrtcPtr crtc) } } +static Bool drmmode_use_hw_cursor_argb(xf86CrtcPtr crtc, CursorPtr cursor) +{ + return !crtc->transformPresent; +} + static void drmmode_load_cursor_argb(xf86CrtcPtr crtc, CARD32 *image) { @@ -799,6 +804,7 @@ static const xf86CrtcFuncsRec drmmode_crtc_funcs = { .set_cursor_position = drmmode_set_cursor_position, .show_cursor = drmmode_show_cursor, .hide_cursor = drmmode_hide_cursor, + .use_hw_cursor_argb = drmmode_use_hw_cursor_argb, .load_cursor_argb = drmmode_load_cursor_argb, .gamma_set = drmmode_crtc_gamma_set, -- 2.6.2 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
