From 145d2d610b90b6129bbbebd1e1f8c71f9147cbde Mon Sep 17 00:00:00 2001
From: Robert Noland <rnoland@2hip.net>
Date: Mon, 27 Oct 2008 14:39:05 -0400
Subject: 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.
---
 shared-core/i915_dma.c | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'shared-core')

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);
-- 
cgit v1.2.3