summaryrefslogtreecommitdiff
path: root/tests/gen3_render_tiledy_blits.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-01-10 14:59:58 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-01-10 14:59:58 +0100
commitaa67b22e426f26f8a8d7fe35221fe2a6ceb5d3db (patch)
treea975475aedd8eef629dd922ed764c3e141422de9 /tests/gen3_render_tiledy_blits.c
parent1be3fd7eeed3adf1fba56edc37110d346b03b88b (diff)
lib/drmtest: extract gem_set_tiling
Way too much copy-pasting going on here. Also fix a compiler warnings in gem_stress while fixup things up. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gen3_render_tiledy_blits.c')
-rw-r--r--tests/gen3_render_tiledy_blits.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/gen3_render_tiledy_blits.c b/tests/gen3_render_tiledy_blits.c
index 11c00c28..a29d5553 100644
--- a/tests/gen3_render_tiledy_blits.c
+++ b/tests/gen3_render_tiledy_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)
{