summaryrefslogtreecommitdiff
path: root/tests/gem_tiled_pread_pwrite.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-06-20 00:14:52 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-07-11 15:12:23 +0100
commit7bf0f7fc58b524f269981c873ca120dbe1c0ae67 (patch)
tree79b1e561b1d65efec087aaa43d896e3bf9f56d61 /tests/gem_tiled_pread_pwrite.c
parent92a2b292df74408c42a3668c9f4d1a3aed194bfc (diff)
lib: Extract gem_get_tiling() from a couple of tests.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests/gem_tiled_pread_pwrite.c')
-rw-r--r--tests/gem_tiled_pread_pwrite.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/gem_tiled_pread_pwrite.c b/tests/gem_tiled_pread_pwrite.c
index b6d9d627..5ab46783 100644
--- a/tests/gem_tiled_pread_pwrite.c
+++ b/tests/gem_tiled_pread_pwrite.c
@@ -68,22 +68,6 @@ static uint32_t current_tiling_mode;
#define PAGE_SIZE 4096
-static void
-gem_get_tiling(int fd, uint32_t handle, uint32_t *tiling, uint32_t *swizzle)
-{
- struct drm_i915_gem_get_tiling get_tiling;
- int ret;
-
- memset(&get_tiling, 0, sizeof(get_tiling));
- get_tiling.handle = handle;
-
- ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_GET_TILING, &get_tiling);
- igt_assert(ret == 0);
-
- *tiling = get_tiling.tiling_mode;
- *swizzle = get_tiling.swizzle_mode;
-}
-
static uint32_t
create_bo_and_fill(int fd)
{