From b84db39edb6ebce965c1354dc5994bf0a70cea92 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 7 Mar 2013 09:07:19 +0000 Subject: [PATCH] intel: Relax the has-kms test slightly Do not rely on a fully populated set of CRTCs, but merely note that the GETRESOURCES ioctl returns an error if KMS is not enabled. Signed-off-by: Chris Wilson --- src/intel_module.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel_module.c b/src/intel_module.c index bd9b9bb6..4434ed07 100644 --- a/src/intel_module.c +++ b/src/intel_module.c @@ -423,9 +423,7 @@ static Bool has_kernel_mode_setting(const struct pci_device *dev) struct drm_mode_card_res res; memset(&res, 0, sizeof(res)); - if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res) == 0) - ret = res.count_crtcs != 0; - else + if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) ret = FALSE; } close(fd);