summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-23 13:45:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-23 13:55:39 +0100
commitf2b2b6eda009924e5ec6974bb31be9d3749c9cf8 (patch)
tree08e0ee3d694cf3a6b83d18aefbcdf840581de212 /test
parent65c2376730e86d7502d8c47d49386be5f51e47ba (diff)
test/dri2: Use the right device node
Use the device node as instructed by Xorg. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/dri2-race.c2
-rw-r--r--test/dri2-swap.c2
-rw-r--r--test/dri2-test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/dri2-race.c b/test/dri2-race.c
index 01b023a1..8862c84c 100644
--- a/test/dri2-race.c
+++ b/test/dri2-race.c
@@ -28,7 +28,7 @@ static int dri2_open(Display *dpy)
printf ("Connecting to %s driver on %s\n", driver, device);
- fd = open("/dev/dri/card0", O_RDWR);
+ fd = open(device, O_RDWR);
if (fd < 0)
return -1;
diff --git a/test/dri2-swap.c b/test/dri2-swap.c
index ba6b2373..1bfb7d10 100644
--- a/test/dri2-swap.c
+++ b/test/dri2-swap.c
@@ -28,7 +28,7 @@ static int dri2_open(Display *dpy)
printf ("Connecting to %s driver on %s\n", driver, device);
- fd = open("/dev/dri/card0", O_RDWR);
+ fd = open(device, O_RDWR);
if (fd < 0)
return -1;
diff --git a/test/dri2-test.c b/test/dri2-test.c
index 51b3da92..dd4179f3 100644
--- a/test/dri2-test.c
+++ b/test/dri2-test.c
@@ -52,7 +52,7 @@ static int dri2_open(Display *dpy)
printf ("Connecting to %s driver on %s\n", driver, device);
- fd = open("/dev/dri/card0", O_RDWR);
+ fd = open(device, O_RDWR);
if (fd < 0)
return -1;