diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-03-22 10:36:02 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-03-22 10:36:02 +0000 |
commit | 4988d8fd04f07e5d2462fe91e5111b3c0c70a189 (patch) | |
tree | 150e9472b8fae4a91b5e54e1b78e2ca0acef9fb3 /sys/dev | |
parent | 9377982f18dc7ddb524ec1774115fdffd9a6b507 (diff) |
add some macros needed by newer libdrm
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915_drm.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_drm.h b/sys/dev/pci/drm/i915_drm.h index 86ff4d28105..03cddd3c859 100644 --- a/sys/dev/pci/drm/i915_drm.h +++ b/sys/dev/pci/drm/i915_drm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_drm.h,v 1.16 2013/03/22 05:19:21 jsg Exp $ */ +/* $OpenBSD: i915_drm.h,v 1.17 2013/03/22 10:36:01 jsg Exp $ */ /* * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. * All Rights Reserved. @@ -629,6 +629,12 @@ struct drm_i915_gem_execbuffer2 { */ #define I915_EXEC_IS_PINNED (1<<10) +#define I915_EXEC_CONTEXT_ID_MASK (0xffffffff) +#define i915_execbuffer2_set_context_id(eb2, context) \ + (eb2).rsvd1 = context & I915_EXEC_CONTEXT_ID_MASK +#define i915_execbuffer2_get_context_id(eb2) \ + ((eb2).rsvd1 & I915_EXEC_CONTEXT_ID_MASK) + struct drm_i915_gem_pin { /** Handle of the buffer to be pinned. */ uint32_t handle; |