projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90cc0de
)
etnaviv: etnaviv_bo_cache_test: Use /dev/dri/renderD128 by default
author
Guido Günther
<agx@sigxcpu.org>
Mon, 3 Jun 2019 09:12:02 +0000
(11:12 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Wed, 5 Jun 2019 08:58:05 +0000
(08:58 +0000)
Signed-off-by: Guido Günther <guido.gunther@puri.sm>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/etnaviv/drm/tests/etnaviv_bo_cache_test.c
patch
|
blob
|
history
diff --git
a/src/etnaviv/drm/tests/etnaviv_bo_cache_test.c
b/src/etnaviv/drm/tests/etnaviv_bo_cache_test.c
index 8bdacf97e32228310909a0c197e30a9f1b6a974c..256960115e130dc6a25bfbc552bacca155016dcf 100644
(file)
--- 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) {