Commit 19ac8389 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

DRI2: Try to explicitly load 'mali' and 'mali_drm' kernel modules


Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent 6f708d4b
......@@ -35,6 +35,7 @@
#include <sys/ioctl.h>
#include "xorgVersion.h"
#include "xf86_OSproc.h"
#include "xf86.h"
#include "xf86drm.h"
#include "dri2.h"
......@@ -694,6 +695,11 @@ SunxiMaliDRI2 *SunxiMaliDRI2_Init(ScreenPtr pScreen, Bool bUseOverlay)
}
}
if (!xf86LoadKernelModule("mali"))
xf86DrvMsg(pScreen->myNum, X_INFO, "can't load 'mali' kernel module\n");
if (!xf86LoadKernelModule("mali_drm"))
xf86DrvMsg(pScreen->myNum, X_INFO, "can't load 'mali_drm' kernel module\n");
if (!xf86LoadSubModule(xf86Screens[pScreen->myNum], "dri2"))
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment