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>
This commit is contained in:
Chris Wilson 2014-07-23 13:45:27 +01:00
parent 65c2376730
commit f2b2b6eda0
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;