Message ID | 1489594171-10758-1-git-send-email-jason.ekstrand@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Mar 15, 2017 at 09:09:31AM -0700, Jason Ekstrand wrote: > +#ifndef DRM_IOCTL_I915_GEM_EXECBUFFER2_WR > +#define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2_WR, struct drm_i915_gem_execbuffer2) > +#endif If DRM_IOCTL_I915_GEM_EXECBUFFER2_WR is not there, neither is DRM_I915_GEM_EXECBUFFER2_WR. -- Petri Latvala
On Thu, Mar 16, 2017 at 3:51 AM, Petri Latvala <petri.latvala@intel.com> wrote: > On Wed, Mar 15, 2017 at 09:09:31AM -0700, Jason Ekstrand wrote: > > +#ifndef DRM_IOCTL_I915_GEM_EXECBUFFER2_WR > > +#define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR DRM_IOWR(DRM_COMMAND_BASE > + DRM_I915_GEM_EXECBUFFER2_WR, struct drm_i915_gem_execbuffer2) > > +#endif > > If DRM_IOCTL_I915_GEM_EXECBUFFER2_WR is not there, neither is > DRM_I915_GEM_EXECBUFFER2_WR. > Right. :-) I'll fix that.
diff --git a/tools/aubdump.c b/tools/aubdump.c index 08cee55..dba5b35 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -47,6 +47,10 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) #endif +#ifndef DRM_IOCTL_I915_GEM_EXECBUFFER2_WR +#define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2_WR, struct drm_i915_gem_execbuffer2) +#endif + static int close_init_helper(int fd); static int ioctl_init_helper(int fd, unsigned long request, ...);