summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2018-08-09 07:12:24 +0200
committerChristian Gmeiner <[email protected]>2018-08-31 21:47:13 +0200
commit773d6ea6e715d207bda3a53a9dfc8acf686035b0 (patch)
treec38cc6666764ff8de571ac235dad6ba192d53c65 /src/gallium/winsys
parentb05a8f4f41e7f4c5405eb8d8342ef3734564ae80 (diff)
imx: make use of loader_open_render_node(..) helper
Gets rid of hard-coded gpu device path. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/imx/drm/imx_drm_winsys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/imx/drm/imx_drm_winsys.c b/src/gallium/winsys/imx/drm/imx_drm_winsys.c
index cd72610b955..4bd21250315 100644
--- a/src/gallium/winsys/imx/drm/imx_drm_winsys.c
+++ b/src/gallium/winsys/imx/drm/imx_drm_winsys.c
@@ -26,6 +26,7 @@
#include "imx_drm_public.h"
#include "etnaviv/drm/etnaviv_drm_public.h"
+#include "loader/loader.h"
#include "renderonly/renderonly.h"
#include <fcntl.h>
@@ -36,7 +37,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_render_node("etnaviv")
};
if (ro.gpu_fd < 0)