From: Guido Günther Date: Mon, 3 Jun 2019 09:12:02 +0000 (+0200) Subject: etnaviv: etnaviv_bo_cache_test: Use /dev/dri/renderD128 by default X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=755fdd6f9dca0d1906639bd9e1028f54b4e76e59;p=mesa.git etnaviv: etnaviv_bo_cache_test: Use /dev/dri/renderD128 by default Signed-off-by: Guido Günther Reviewed-by: Christian Gmeiner --- 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) {