summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/eviction_common.c2
-rw-r--r--tests/gem_ctx_thrash.c4
-rw-r--r--tests/gem_seqno_wrap.c2
-rw-r--r--tests/gem_stress.c2
-rw-r--r--tests/kms_flip.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/eviction_common.c b/tests/eviction_common.c
index 4a12dcbc..b18c2a73 100644
--- a/tests/eviction_common.c
+++ b/tests/eviction_common.c
@@ -55,7 +55,7 @@ static void exchange_uint32_t(void *array, unsigned i, unsigned j)
{
uint32_t *i_arr = array;
- swap(i_arr[i], i_arr[j]);
+ igt_swap(i_arr[i], i_arr[j]);
}
static int minor_evictions(int fd, struct igt_eviction_test_ops *ops,
diff --git a/tests/gem_ctx_thrash.c b/tests/gem_ctx_thrash.c
index 5c272338..b4818f4e 100644
--- a/tests/gem_ctx_thrash.c
+++ b/tests/gem_ctx_thrash.c
@@ -55,13 +55,13 @@ static int ctx_per_thread;
static void xchg_ptr(void *array, unsigned i, unsigned j)
{
void **A = array;
- swap(A[i], A[j]);
+ igt_swap(A[i], A[j]);
}
static void xchg_int(void *array, unsigned i, unsigned j)
{
int *A = array;
- swap(A[i], A[j]);
+ igt_swap(A[i], A[j]);
}
static int reopen(int _fd)
diff --git a/tests/gem_seqno_wrap.c b/tests/gem_seqno_wrap.c
index 42493efd..d07ec960 100644
--- a/tests/gem_seqno_wrap.c
+++ b/tests/gem_seqno_wrap.c
@@ -172,7 +172,7 @@ static void exchange_uint(void *array, unsigned i, unsigned j)
{
unsigned *i_arr = array;
- swap(i_arr[i], i_arr[j]);
+ igt_swap(i_arr[i], i_arr[j]);
}
static void run_sync_test(int num_buffers, bool verify)
diff --git a/tests/gem_stress.c b/tests/gem_stress.c
index 9f20bde2..f687b2d1 100644
--- a/tests/gem_stress.c
+++ b/tests/gem_stress.c
@@ -571,7 +571,7 @@ static void exchange_uint(void *array, unsigned i, unsigned j)
{
unsigned *i_arr = array;
- swap(i_arr[i], i_arr[j]);
+ igt_swap(i_arr[i], i_arr[j]);
}
static void copy_tiles(unsigned *permutation)
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 292b7bc6..09dc3c79 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -242,7 +242,7 @@ static int _emit_dummy_load__bcs(struct test_output *o, int limit, int timeout)
2048, 2048,
2048*4, 2048*4);
- swap(src_bo, dst_bo);
+ igt_swap(src_bo, dst_bo);
}
blit_copy(fb_bo, src_bo,
min(o->fb_width, 2048), min(o->fb_height, 2048),
@@ -357,7 +357,7 @@ static int _emit_dummy_load__rcs(struct test_output *o, int limit, int timeout)
2048, 2048,
dst, 0, 0);
- swap(src, dst);
+ igt_swap(src, dst);
}
copyfunc(batch, NULL,
src, 0, 0,