summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2013-03-27 12:37:49 +0000
committerjsg <jsg@openbsd.org>2013-03-27 12:37:49 +0000
commite9864aa55385f14da6399552839267f4b108a6bc (patch)
treea25f60cfdd8ba2bce2515a181c159a5bde7eb279
parentclaim support for secure and pinned batch buffers (diff)
downloadwireguard-openbsd-e9864aa55385f14da6399552839267f4b108a6bc.tar.xz
wireguard-openbsd-e9864aa55385f14da6399552839267f4b108a6bc.zip
match recent linux and return whether the ring is initialised
for the has bsd/blt ring params instead of whether the hardware has the ring.
-rw-r--r--sys/dev/pci/drm/i915/i915_dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/i915/i915_dma.c b/sys/dev/pci/drm/i915/i915_dma.c
index 2f6b82a0aa4..3f18b341984 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.4 2013/03/27 12:14:29 jsg Exp $ */
+/* $OpenBSD: i915_dma.c,v 1.5 2013/03/27 12:37:49 jsg Exp $ */
/* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
*/
/*
@@ -94,10 +94,10 @@ i915_getparam(struct inteldrm_softc *dev_priv, void *data)
value = 1;
break;
case I915_PARAM_HAS_BSD:
- value = HAS_BSD(dev);
+ value = intel_ring_initialized(&dev_priv->rings[VCS]);
break;
case I915_PARAM_HAS_BLT:
- value = HAS_BLT(dev);
+ value = intel_ring_initialized(&dev_priv->rings[BCS]);
break;
case I915_PARAM_HAS_RELAXED_FENCING:
#ifdef notyet