summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_render_copy.c2
-rw-r--r--tests/i915_query.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c
index 135375a9..17a66564 100644
--- a/tests/gem_render_copy.c
+++ b/tests/gem_render_copy.c
@@ -112,8 +112,6 @@ static void scratch_buf_write_to_png(data_t *data, struct igt_buf *buf,
free(linear);
}
-#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
-
static int scratch_buf_aux_width(const struct igt_buf *buf)
{
return DIV_ROUND_UP(igt_buf_width(buf), 1024) * 128;
diff --git a/tests/i915_query.c b/tests/i915_query.c
index c7de8cbd..08aabf94 100644
--- a/tests/i915_query.c
+++ b/tests/i915_query.c
@@ -242,8 +242,6 @@ static void test_query_topology_unsupported(int fd)
igt_assert_eq(item.length, -ENODEV);
}
-#define DIV_ROUND_UP(val, div) (ALIGN(val, div) / div)
-
static bool
slice_available(const struct drm_i915_query_topology_info *topo_info,
int s)