From 22d0955e019020f9ecda4124707801214e279a0c Mon Sep 17 00:00:00 2001 From: ranjeet kumar Date: Tue, 28 Apr 2020 19:01:41 +0530 Subject: 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 Cc: Tahvanainen Jari Signed-off-by: ranjeet kumar Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson --- benchmarks/gem_exec_fault.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'benchmarks/gem_exec_fault.c') diff --git a/benchmarks/gem_exec_fault.c b/benchmarks/gem_exec_fault.c index 3f58c77d..4bd05372 100644 --- a/benchmarks/gem_exec_fault.c +++ b/benchmarks/gem_exec_fault.c @@ -47,13 +47,7 @@ #include "intel_reg.h" #include "igt_stats.h" -#define LOCAL_I915_EXEC_NO_RELOC (1<<11) -#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) - -#define LOCAL_I915_EXEC_BSD_SHIFT (13) -#define LOCAL_I915_EXEC_BSD_MASK (3 << LOCAL_I915_EXEC_BSD_SHIFT) - -#define ENGINE_FLAGS (I915_EXEC_RING_MASK | LOCAL_I915_EXEC_BSD_MASK) +#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK) static double elapsed(const struct timespec *start, const struct timespec *end) @@ -88,8 +82,8 @@ static int loop(uint64_t size, unsigned ring, int reps, int ncpus, unsigned flag memset(&execbuf, 0, sizeof(execbuf)); execbuf.buffers_ptr = (uintptr_t)&obj; execbuf.buffer_count = 1; - execbuf.flags |= LOCAL_I915_EXEC_HANDLE_LUT; - execbuf.flags |= LOCAL_I915_EXEC_NO_RELOC; + execbuf.flags |= I915_EXEC_HANDLE_LUT; + execbuf.flags |= I915_EXEC_NO_RELOC; if (__gem_execbuf(fd, &execbuf)) { execbuf.flags = 0; if (__gem_execbuf(fd, &execbuf)) -- cgit v1.2.3