OSDN Git Service

android: set LOCAL_MODULE_TAGS to optional
[android-x86/external-libdrm.git] / libkms / linux.c
index 02182d3..fc4f205 100644 (file)
@@ -111,6 +111,10 @@ linux_from_sysfs(int fd, struct kms_driver **out)
        else if (!strcmp(name, "nouveau"))
                ret = nouveau_create(fd, out);
 #endif
+#ifdef HAVE_RADEON
+       else if (!strcmp(name, "radeon"))
+               ret = radeon_create(fd, out);
+#endif
        else
                ret = -ENOSYS;
 
@@ -212,6 +216,9 @@ linux_from_udev(int fd, struct kms_driver **out)
 int
 linux_create(int fd, struct kms_driver **out)
 {
+       if (!dumb_create(fd, out))
+               return 0;
+
        if (!linux_from_udev(fd, out))
                return 0;