aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFran├žois Tigeot2014-07-26 06:39:58 -0500
committerMaarten Lankhorst2014-08-14 14:56:46 -0500
commitedbb4e545f75c08d9d178173bdcdc87ffc88dcd4 (patch)
treecd4b937e0854596495e01d6be71abd21ce226f4b /xf86drmMode.c
parent07fead4462b2d537d0c3cae69a09272fc426c598 (diff)
downloadexternal-libgbm-edbb4e545f75c08d9d178173bdcdc87ffc88dcd4.tar.gz
external-libgbm-edbb4e545f75c08d9d178173bdcdc87ffc88dcd4.tar.xz
external-libgbm-edbb4e545f75c08d9d178173bdcdc87ffc88dcd4.zip
drm: Implement drmCheckModesettingSupported() for DragonFly
For the sake of simplicity, KMS support can always be considered present on DragonFly. If some particular version doesn't support KMS yet, appropriate checks are already done in Dports's x11-drivers/ Makefiles and KMS-enabled driver packages don't get built. Signed-off-by: Fran├žois Tigeot <ftigeot@wolfpond.org> Signed-off-by: Maarten Lankhorst <dev@mblankhorst.nl>
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index 7ca89b37..60ce3699 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -806,6 +806,8 @@ int drmCheckModesettingSupported(const char *busid)
806 return -EINVAL; 806 return -EINVAL;
807 return (modesetting ? 0 : -ENOSYS); 807 return (modesetting ? 0 : -ENOSYS);
808 } 808 }
809#elif defined(__DragonFly__)
810 return 0;
809#endif 811#endif
810 return -ENOSYS; 812 return -ENOSYS;
811 813