summaryrefslogtreecommitdiff
path: root/tests/gen3_render_tiledx_blits.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gen3_render_tiledx_blits.c')
-rw-r--r--tests/gen3_render_tiledx_blits.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/gen3_render_tiledx_blits.c b/tests/gen3_render_tiledx_blits.c
index a6c72a66..1636027a 100644
--- a/tests/gen3_render_tiledx_blits.c
+++ b/tests/gen3_render_tiledx_blits.c
@@ -360,22 +360,6 @@ static void *gem_mmap(int fd, uint32_t handle, int size, int prot)
return ptr;
}
-static void gem_set_tiling(int fd, uint32_t handle, int tiling, int stride)
-{
- struct drm_i915_gem_set_tiling set_tiling;
- int ret;
-
- do {
- set_tiling.handle = handle;
- set_tiling.tiling_mode = tiling;
- set_tiling.stride = stride;
-
- ret = ioctl(fd, DRM_IOCTL_I915_GEM_SET_TILING, &set_tiling);
- } while (ret == -1 && (errno == EINTR || errno == EAGAIN));
- assert(ret == 0);
- assert(set_tiling.tiling_mode == tiling);
-}
-
static uint32_t
create_bo(int fd, uint32_t val)
{