@@ -70,7 +70,7 @@ main(void)
drmDevicePtr device;
int fd, ret, max_devices;
- max_devices = drmGetDevices(NULL, 0);
+ max_devices = drmGetDevices2(DRM_DEVICE_IGNORE_PCI_REVISION, NULL, 0);
if (max_devices <= 0) {
printf("drmGetDevices() has returned %d\n", max_devices);
@@ -83,7 +83,7 @@ main(void)
return -1;
}
- ret = drmGetDevices(devices, max_devices);
+ ret = drmGetDevices2(DRM_DEVICE_IGNORE_PCI_REVISION, devices, max_devices);
if (ret < 0) {
printf("drmGetDevices() returned an error %d\n", ret);
free(devices);
@@ -102,7 +102,7 @@ main(void)
continue;
}
- if (drmGetDevice(fd, &device) == 0) {
+ if (drmGetDevice2(fd, DRM_DEVICE_IGNORE_PCI_REVISION, &device) == 0) {
print_device_info(device, i);
drmFreeDevice(&device);
}