From f47f6b6a53d414f28374391964c2930427d28f46 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Thu, 3 Nov 2011 13:20:18 +0000 Subject: [PATCH] don't map cursors in sw cursor mode --- hw/xfree86/drivers/modesetting/driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index 7df587e55..7060d3779 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -551,7 +551,8 @@ CreateScreenResources(ScreenPtr pScreen) drmmode_uevent_init(pScrn, &ms->drmmode); - drmmode_map_cursor_bos(pScrn, &ms->drmmode); + if (!ms->SWCursor) + drmmode_map_cursor_bos(pScrn, &ms->drmmode); pixels = drmmode_map_front_bo(&ms->drmmode); if (!pixels) return FALSE;