From f47bdba8b0504661b5d291a8639f156cda993379 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Kristensen Date: Tue, 4 Aug 2015 09:36:53 -0700 Subject: tools/aubdump.c: Also define struct drm_i915_gem_userptr for compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oops, we obviously also need to define the argument struct for userptr. Signed-off-by: Kristian Høgsberg Kristensen --- tools/aubdump.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tools/aubdump.c') 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 -- cgit v1.2.3