diff options
author | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2015-08-04 09:36:53 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2015-08-04 09:36:53 -0700 |
commit | f47bdba8b0504661b5d291a8639f156cda993379 (patch) | |
tree | c67ba910015063ecb2c15430fb8343bf17fa6057 /tools/aubdump.c | |
parent | e4fa17df026d6b5d68ee221d177049cdd1ad6924 (diff) |
tools/aubdump.c: Also define struct drm_i915_gem_userptr for compatibility
Oops, we obviously also need to define the argument struct for userptr.
Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Diffstat (limited to 'tools/aubdump.c')
-rw-r--r-- | tools/aubdump.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c index 83da0e02..d84e2b5e 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -66,8 +66,24 @@ static struct bo *bos; #define DRM_MAJOR 226 #ifndef DRM_I915_GEM_USERPTR + #define DRM_I915_GEM_USERPTR 0x33 #define DRM_IOCTL_I915_GEM_USERPTR DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_USERPTR, struct drm_i915_gem_userptr) + +struct drm_i915_gem_userptr { + __u64 user_ptr; + __u64 user_size; + __u32 flags; +#define I915_USERPTR_READ_ONLY 0x1 +#define I915_USERPTR_UNSYNCHRONIZED 0x80000000 + /** + * Returned handle for the object. + * + * Object handles are nonzero. + */ + __u32 handle; +}; + #endif /* We set bit 0 in the map pointer for userptr BOs so we know not to |