diff options
author | 2013-03-27 12:14:29 +0000 | |
---|---|---|
committer | 2013-03-27 12:14:29 +0000 | |
commit | e78af25a976afd5879ceb9546d1f67f55bc832d7 (patch) | |
tree | d5fdad66d92109aa8189b09ffbb214f6220edf5d | |
parent | Add TMUX_TMPDIR variable to put the socket directory outside (diff) | |
download | wireguard-openbsd-e78af25a976afd5879ceb9546d1f67f55bc832d7.tar.xz wireguard-openbsd-e78af25a976afd5879ceb9546d1f67f55bc832d7.zip |
claim support for secure and pinned batch buffers
we already have the code to handle these
-rw-r--r-- | sys/dev/pci/drm/i915/i915_dma.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/i915_dma.c b/sys/dev/pci/drm/i915/i915_dma.c index 117defd19b3..2f6b82a0aa4 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.3 2013/03/27 09:26:45 jsg Exp $ */ +/* $OpenBSD: i915_dma.c,v 1.4 2013/03/27 12:14:29 jsg Exp $ */ /* i915_dma.c -- DMA support for the I915 -*- linux-c -*- */ /* @@ -121,6 +121,12 @@ i915_getparam(struct inteldrm_softc *dev_priv, void *data) case I915_PARAM_HAS_SEMAPHORES: value = i915_semaphore_is_enabled(dev); break; + case I915_PARAM_HAS_SECURE_BATCHES: + value = DRM_SUSER(curproc); + break; + case I915_PARAM_HAS_PINNED_BATCHES: + value = 1; + break; default: DRM_DEBUG("Unknown parameter %d\n", param->param); return (EINVAL); |