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:
parent
65c2376730
commit
f2b2b6eda0
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue