diff options
author | 2013-03-27 12:37:49 +0000 | |
---|---|---|
committer | 2013-03-27 12:37:49 +0000 | |
commit | e9864aa55385f14da6399552839267f4b108a6bc (patch) | |
tree | a25f60cfdd8ba2bce2515a181c159a5bde7eb279 | |
parent | claim support for secure and pinned batch buffers (diff) | |
download | wireguard-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.c | 6 |
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 |