don't map cursors in sw cursor mode

This commit is contained in:
James Simmons 2011-11-03 13:20:18 +00:00 committed by Dave Airlie
parent d4eebe5217
commit f47f6b6a53

View File

@ -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;