summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-03-27 09:26:46 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-03-27 09:26:46 +0000
commit9f88318217754f5a95b819629f4b25b4f463b13e (patch)
tree34342c3089a0e99e7ca7745236236f048599ab0e
parent6ae37f4801348016011a77f9501a7193f4c6269f (diff)
Claim to support I915_PARAM_HAS_COHERENT_RINGS.
While seemingly unused by userspace at the moment this was apparently added to resolve an abi problem with libva and the BSD ring.
-rw-r--r--sys/dev/pci/drm/i915/i915_dma.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/i915_dma.c b/sys/dev/pci/drm/i915/i915_dma.c
index 89bb3920210..117defd19b3 100644
--- a/sys/dev/pci/drm/i915/i915_dma.c
+++ b/sys/dev/pci/drm/i915/i915_dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_dma.c,v 1.2 2013/03/20 12:37:41 jsg Exp $ */
+/* $OpenBSD: i915_dma.c,v 1.3 2013/03/27 09:26:45 jsg Exp $ */
/* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
*/
/*
@@ -106,6 +106,9 @@ i915_getparam(struct inteldrm_softc *dev_priv, void *data)
return EINVAL;
#endif
break;
+ case I915_PARAM_HAS_COHERENT_RINGS:
+ value = 1;
+ break;
case I915_PARAM_HAS_EXEC_CONSTANTS:
value = INTEL_INFO(dev)->gen >= 4;
break;