aboutsummaryrefslogtreecommitdiffstats
path: root/src/etnaviv/drm
diff options
context:
space:
mode:
authorGuido Günther <[email protected]>2019-06-03 11:12:02 +0200
committerGuido Günther <[email protected]>2019-06-05 08:58:05 +0000
commit755fdd6f9dca0d1906639bd9e1028f54b4e76e59 (patch)
treeba49b40f181415f114cdd9306d092e05373d8289 /src/etnaviv/drm
parent90cc0de1021c668991cb7c236c9008bbfc402e75 (diff)
etnaviv: etnaviv_bo_cache_test: Use /dev/dri/renderD128 by default
Signed-off-by: Guido Günther <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/etnaviv/drm')
-rw-r--r--src/etnaviv/drm/tests/etnaviv_bo_cache_test.c10
1 files 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) {