mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user