summaryrefslogtreecommitdiff
path: root/src/intel_module.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-07 09:07:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-07 09:07:19 +0000
commitb84db39edb6ebce965c1354dc5994bf0a70cea92 (patch)
treea3f3289bd66d27bafcf41577062c8ba5b58469ee /src/intel_module.c
parentc6a59bee3bf5f42147f75a714f2b9aa26590329e (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_module.c')
-rw-r--r--src/intel_module.c4
1 files changed, 1 insertions, 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);