mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
tools/aubdump: #define DRM_IOCTL_I915_GEM_USERPTR if kernel headers don't
Fix compile error on older kernels. Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
This commit is contained in:
parent
0b5faefba3
commit
e4fa17df02
@ -65,6 +65,11 @@ 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)
|
||||
#endif
|
||||
|
||||
/* We set bit 0 in the map pointer for userptr BOs so we know not to
|
||||
* munmap them on DRM_IOCTL_GEM_CLOSE.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user