diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2021-10-06 10:31:30 -0400 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2021-10-07 13:02:32 -0400 |
commit | 0b7ffc8f3ea7a01c17463b862f549dc9daa9ae22 (patch) | |
tree | 61e299dcc57a6241e7b4a972bbbd1e467e1dd913 /tests | |
parent | 3110c277221f5cbd61e69a93ef9267464e9f3944 (diff) |
tests/gem_userptr_blits: Remove LOCAL_
These UAPIs are upstreamed now.
Cc: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_userptr_blits.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c index 756bd6e4..0d084674 100644 --- a/tests/i915/gem_userptr_blits.c +++ b/tests/i915/gem_userptr_blits.c @@ -2151,16 +2151,13 @@ static int userfaultfd(int flags) return syscall(SYS_userfaultfd, flags); } -#define LOCAL_I915_PARAM_HAS_USERPTR_PROBE 56 -#define LOCAL_I915_USERPTR_PROBE 0x2 - static bool has_userptr_probe(int fd) { struct drm_i915_getparam gp; int value = 0; memset(&gp, 0, sizeof(gp)); - gp.param = LOCAL_I915_PARAM_HAS_USERPTR_PROBE; + gp.param = I915_PARAM_HAS_USERPTR_PROBE; gp.value = &value; ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)); @@ -2222,7 +2219,7 @@ static void test_probe(int fd) } igt_assert_eq(__gem_userptr(fd, ptr + PAGE_SIZE, 3*PAGE_SIZE, - 0, LOCAL_I915_USERPTR_PROBE, &handle), + 0, I915_USERPTR_PROBE, &handle), expected); munmap(ptr, N_PAGES * PAGE_SIZE); |