diff options
author | ranjeet kumar <ranjeet1.kumar@intel.com> | 2020-04-28 19:01:41 +0530 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-11 20:16:27 +0100 |
commit | 22d0955e019020f9ecda4124707801214e279a0c (patch) | |
tree | 6f43a7cc405399eb892e905bae59311f9f0ab8ae /tests/i915/gem_concurrent_all.c | |
parent | 5a5a3162a7638b3ae38b6dc2545622c204d1b97c (diff) |
Macros fixes: Removed unused & redundant macros
Local macros were declared in several files as a prelude to upstream
implementations. Now that we ship include/drm-uapi, we can remove LOCAL
as we upstream.
Cc: Dixit, Ashutosh <ashutosh.dixit@intel.com>
Cc: Tahvanainen Jari <jari.tahvanainen@intel.com>
Signed-off-by: ranjeet kumar <ranjeet1.kumar@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/gem_concurrent_all.c')
-rw-r--r-- | tests/i915/gem_concurrent_all.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_concurrent_all.c b/tests/i915/gem_concurrent_all.c index fecb2b22..80278c75 100644 --- a/tests/i915/gem_concurrent_all.c +++ b/tests/i915/gem_concurrent_all.c @@ -237,12 +237,12 @@ static void create_userptr_require(const struct create *create, unsigned count) arg.user_ptr = -4096ULL; arg.user_size = 8192; errno = 0; - drmIoctl(fd, LOCAL_IOCTL_I915_GEM_USERPTR, &arg); + drmIoctl(fd, DRM_IOCTL_I915_GEM_USERPTR, &arg); if (errno == EFAULT) { igt_assert(posix_memalign((void **)&arg.user_ptr, 4096, arg.user_size) == 0); has_userptr = drmIoctl(fd, - LOCAL_IOCTL_I915_GEM_USERPTR, + DRM_IOCTL_I915_GEM_USERPTR, &arg) == 0; free(from_user_pointer(arg.user_ptr)); } @@ -254,7 +254,7 @@ static void create_userptr_require(const struct create *create, unsigned count) static drm_intel_bo * userptr_create_bo(const struct buffers *b) { - struct local_i915_gem_userptr userptr; + struct drm_i915_gem_userptr userptr; drm_intel_bo *bo; void *ptr; @@ -267,7 +267,7 @@ userptr_create_bo(const struct buffers *b) userptr.user_ptr = to_user_pointer(ptr); #if 0 - do_or_die(drmIoctl(fd, LOCAL_IOCTL_I915_GEM_USERPTR, &userptr)); + do_or_die(drmIoctl(fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr)); bo = gem_handle_to_libdrm_bo(b->bufmgr, fd, "userptr", userptr.handle); gem_close(fd, userptr.handle); #else |