summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@infradead.org>2011-11-03 13:20:18 +0000
committerDave Airlie <airlied@redhat.com>2011-11-03 13:20:18 +0000
commitcc00491b3eca16b2e2bdb48fa3d8e5ffba7a9671 (patch)
tree2ca3a52515e7547c682eed6d7dcd4472d8f77181
parentb09c4757a91c2c2b18f1c828e0c23af794399816 (diff)
don't map cursors in sw cursor mode
-rw-r--r--src/driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver.c b/src/driver.c
index 7df587e..7060d37 100644
--- a/src/driver.c
+++ b/src/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;