]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/blobdiff - libkms/linux.c
libkms: add dumb support
[glsdk/libdrm.git] / libkms / linux.c
index 02182d3923fb50e4ccec54bf53b181ae6ef59b72..fc4f205cbb9886251647536a8edbf97793e4a073 100644 (file)
@@ -110,6 +110,10 @@ linux_from_sysfs(int fd, struct kms_driver **out)
 #ifdef HAVE_NOUVEAU
        else if (!strcmp(name, "nouveau"))
                ret = nouveau_create(fd, out);
 #ifdef HAVE_NOUVEAU
        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;
 #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)
 {
 int
 linux_create(int fd, struct kms_driver **out)
 {
+       if (!dumb_create(fd, out))
+               return 0;
+
        if (!linux_from_udev(fd, out))
                return 0;
 
        if (!linux_from_udev(fd, out))
                return 0;