[PATCH v2 xserver 3/5] modesetting: Implement CRTC use_hw_cursor_argb hook
Michel Dänzer
michel at daenzer.net
Mon Dec 21 01:45:08 PST 2015
From: Michel Dänzer <michel.daenzer at amd.com>
This will disable the HW cursor while a transform is active on the CRTC.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
v2: Fix indentation
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..5774cdb 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
More information about the xorg-devel
mailing list