[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg-devel
Subject: [PATCH v2 xserver 3/5] modesetting: Implement CRTC use_hw_cursor_argb hook
From: Michel Dänzer <michel () daenzer ! net>
Date: 2015-12-21 9:45:08
Message-ID: 1450691108-10256-1-git-send-email-michel () daenzer ! net
[Download RAW message or body]
From: Michel Dänzer <michel.daenzer@amd.com>
This will disable the HW cursor while a transform is active on the CRTC.
Signed-off-by: Michel Dänzer <michel.daenzer@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
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic