summaryrefslogtreecommitdiff
path: root/tests/i915/gem_ctx_switch.c
diff options
context:
space:
mode:
authorranjeet kumar <ranjeet1.kumar@intel.com>2020-04-28 19:01:41 +0530
committerChris Wilson <chris@chris-wilson.co.uk>2020-05-11 20:16:27 +0100
commit22d0955e019020f9ecda4124707801214e279a0c (patch)
tree6f43a7cc405399eb892e905bae59311f9f0ab8ae /tests/i915/gem_ctx_switch.c
parent5a5a3162a7638b3ae38b6dc2545622c204d1b97c (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_ctx_switch.c')
-rw-r--r--tests/i915/gem_ctx_switch.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/i915/gem_ctx_switch.c b/tests/i915/gem_ctx_switch.c
index 3d34c356..874dc5ae 100644
--- a/tests/i915/gem_ctx_switch.c
+++ b/tests/i915/gem_ctx_switch.c
@@ -43,9 +43,6 @@
#include "i915/gem.h"
#include "igt.h"
-#define LOCAL_I915_EXEC_NO_RELOC (1<<11)
-#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12)
-
#define INTERRUPTIBLE 0x1
#define QUEUE 0x2
@@ -154,8 +151,8 @@ static void single(int fd, uint32_t handle,
execbuf.buffer_count = 1;
execbuf.rsvd1 = contexts[0];
execbuf.flags = e2->flags;
- 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;
igt_require(__gem_execbuf(fd, &execbuf) == 0);
if (__gem_execbuf(fd, &execbuf)) {
execbuf.flags = e2->flags;
@@ -246,8 +243,8 @@ static void all(int fd, uint32_t handle, unsigned flags, int timeout)
execbuf.buffers_ptr = to_user_pointer(obj + 1);
execbuf.buffer_count = 1;
execbuf.rsvd1 = contexts[0];
- 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;
igt_require(__gem_execbuf(fd, &execbuf) == 0);
gem_sync(fd, handle);