[Mesa-dev] [PATCH 2/2] imx: make use of loader_open_name(..)
Christian Gmeiner
christian.gmeiner at gmail.com
Wed Aug 1 21:07:03 UTC 2018
Gets rid of hard-coded gpu device path.
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
src/gallium/winsys/imx/drm/imx_drm_winsys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/winsys/imx/drm/imx_drm_winsys.c b/src/gallium/winsys/imx/drm/imx_drm_winsys.c
index cd72610b95..9678a0b8d4 100644
--- a/src/gallium/winsys/imx/drm/imx_drm_winsys.c
+++ b/src/gallium/winsys/imx/drm/imx_drm_winsys.c
@@ -36,7 +36,7 @@ struct pipe_screen *imx_drm_screen_create(int fd)
struct renderonly ro = {
.create_for_resource = renderonly_create_kms_dumb_buffer_for_resource,
.kms_fd = fd,
- .gpu_fd = open("/dev/dri/renderD128", O_RDWR | O_CLOEXEC)
+ .gpu_fd = loader_open_name("etnaviv", DRM_NODE_RENDER)
};
if (ro.gpu_fd < 0)
--
2.17.1
More information about the mesa-dev
mailing list