From 755fdd6f9dca0d1906639bd9e1028f54b4e76e59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Mon, 3 Jun 2019 11:12:02 +0200 Subject: [PATCH] etnaviv: etnaviv_bo_cache_test: Use /dev/dri/renderD128 by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Günther Reviewed-by: Christian Gmeiner --- src/etnaviv/drm/tests/etnaviv_bo_cache_test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/etnaviv/drm/tests/etnaviv_bo_cache_test.c b/src/etnaviv/drm/tests/etnaviv_bo_cache_test.c index 8bdacf97e32..256960115e1 100644 --- a/src/etnaviv/drm/tests/etnaviv_bo_cache_test.c +++ b/src/etnaviv/drm/tests/etnaviv_bo_cache_test.c @@ -83,10 +83,16 @@ int main(int argc, char *argv[]) drmVersionPtr version; int fd, ret = 0; + const char *node = "/dev/dri/renderD128"; - fd = open(argv[1], O_RDWR); - if (fd < 0) + if (argc > 1) + node = argv[1]; + + fd = open(node, O_RDWR); + if (fd < 0) { + fprintf(stderr, "Failed to open render node %s.\n", node); return 1; + } version = drmGetVersion(fd); if (version) { -- 2.30.2