Commit 9808a58d authored by Daniel Drake's avatar Daniel Drake Committed by Siarhei Siamashka
Browse files

Auto-detect mali DRI device path



When using exynos_drm, /dev/dri/card0 is now the exynos-drm node, and
/dev/dri/card1 is mali.

Instead of hardcoding mali at card0, use libdrm to automatically
provide the correct device node path.
Signed-off-by: default avatarDaniel Drake <drake@endlessm.com>
parent c3958697
......@@ -1037,7 +1037,7 @@ SunxiMaliDRI2 *SunxiMaliDRI2_Init(ScreenPtr pScreen,
info.version = 3;
info.driverName = "lima";
info.deviceName = "/dev/dri/card0";
info.deviceName = drmGetDeviceNameFromFd(drm_fd);
info.fd = drm_fd;
info.CreateBuffer = MaliDRI2CreateBuffer;
......
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