aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie2011-02-08 21:41:49 -0600
committerDave Airlie2011-03-03 23:25:51 -0600
commitbb994653667986757b4c906b8f144737667f7374 (patch)
tree0f7be1d571a71e37db10ecadfac5c2d6f1dfbab1 /libkms/linux.c
parent5c6c6913d1260024e5d156db7973c9e46fe1ff03 (diff)
downloadexternal-libdrm-bb994653667986757b4c906b8f144737667f7374.tar.gz
external-libdrm-bb994653667986757b4c906b8f144737667f7374.tar.xz
external-libdrm-bb994653667986757b4c906b8f144737667f7374.zip
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.c3
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)
216int 216int
217linux_create(int fd, struct kms_driver **out) 217linux_create(int fd, struct kms_driver **out)
218{ 218{
219 if (!dumb_create(fd, out))
220 return 0;
221
219 if (!linux_from_udev(fd, out)) 222 if (!linux_from_udev(fd, out))
220 return 0; 223 return 0;
221 224