summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2008-10-27 14:39:05 -0400
committerRobert Noland <rnoland@2hip.net>2008-10-27 14:39:05 -0400
commit145d2d610b90b6129bbbebd1e1f8c71f9147cbde (patch)
tree9bac4c818f5a2ff642297f48f8ca75d9059c9ce0 /shared-core
parente1372f67274baa44419e000f5d3d6b2e81be2b51 (diff)
i915: Since FreeBSD doesn't have gem support yet, don't advertise it.
This allows us to not crash X when using newer Intel ddx drivers.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index 93bfcba5..29a0a1aa 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -911,7 +911,11 @@ static int i915_getparam(struct drm_device *dev, void *data,
value = dev->pci_device;
break;
case I915_PARAM_HAS_GEM:
+#ifdef I915_HAVE_GEM
value = 1;
+#else
+ value = 0;
+#endif
break;
default:
DRM_ERROR("Unknown parameter %d\n", param->param);