diff options
author | Dave Airlie <airlied@redhat.com> | 2011-02-09 13:41:49 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-03-04 15:25:51 +1000 |
commit | bb994653667986757b4c906b8f144737667f7374 (patch) | |
tree | 0f7be1d571a71e37db10ecadfac5c2d6f1dfbab1 /libkms/linux.c | |
parent | 5c6c6913d1260024e5d156db7973c9e46fe1ff03 (diff) |
libkms: add dumb support
this uses the drm cap interface to check if the dumb ioctl
is supported.
Diffstat (limited to 'libkms/linux.c')
-rw-r--r-- | libkms/linux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libkms/linux.c b/libkms/linux.c index 7449abc1..fc4f205c 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -216,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; |