summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2008-10-27 21:16:07 +0000
committerrnoland <rnoland@FreeBSD.org>2008-10-27 21:16:07 +0000
commit2f55411637c4149a96ef7056f85f9e26e2a8a962 (patch)
treeeb68a7f9010b5bccc4952f257756cb728fb7ee50
parent7c6a907af76b26dc8d48b996824f7173c6ccb4e6 (diff)
downloadFreeBSD-src-2f55411637c4149a96ef7056f85f9e26e2a8a962.zip
FreeBSD-src-2f55411637c4149a96ef7056f85f9e26e2a8a962.tar.gz
Don't report GEM capability until we actually have GEM support.
This was causing the newer Intel video drivers to fail and abort X. Approved by: jhb (mentor)
-rw-r--r--sys/dev/drm/i915_dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/drm/i915_dma.c b/sys/dev/drm/i915_dma.c
index fb2bda5..3cf2aef 100644
--- a/sys/dev/drm/i915_dma.c
+++ b/sys/dev/drm/i915_dma.c
@@ -914,7 +914,8 @@ static int i915_getparam(struct drm_device *dev, void *data,
value = dev->pci_device;
break;
case I915_PARAM_HAS_GEM:
- value = 1;
+ /* We need to reset this to 1 once we have GEM */
+ value = 0;
break;
default:
DRM_ERROR("Unknown parameter %d\n", param->param);
OpenPOWER on IntegriCloud