xf86-video-intel: src/sna/sna_driver.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Mar 20 02:05:21 PDT 2014
src/sna/sna_driver.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 220accd828c5a0054ae9e3b491a434f7a6c750e0
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Mar 20 09:03:31 2014 +0000
sna: Only enable cursor support if the hw cursor is supported
Under a host, we naturally will not setup the cursor capability, and
this provides a safeguard in case we have a machine that does not
support hardware cursors.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 5e1f440..f9e58d4 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -999,7 +999,8 @@ sna_screen_init(SCREEN_INIT_ARGS_DECL)
if (!miDCInitialize(screen, xf86GetPointerScreenFuncs()))
return FALSE;
- if ((sna->flags & SNA_IS_HOSTED) == 0 &&
+ if (sna->mode.cursor_width &&
+ sna->mode.cursor_height &&
xf86_cursors_init(screen,
sna->mode.cursor_width,
sna->mode.cursor_height,
More information about the xorg-commit
mailing list