summaryrefslogtreecommitdiff
path: root/tests/gem_pwrite.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-04-26 11:18:28 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-04-26 11:21:54 +0100
commitcd812a4e89db0150bfcff6d91ffffea37dc106c9 (patch)
treec357a0e6ff1ad2b094ed13b122339c62ff5b4860 /tests/gem_pwrite.c
parent49bcdc84a3e420a420bce9798b683a02273373f4 (diff)
igt/gem_pwrite: Delete unused mmap(wc) for the big CPU test
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_pwrite.c')
-rw-r--r--tests/gem_pwrite.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c
index 17d699e1..4c223581 100644
--- a/tests/gem_pwrite.c
+++ b/tests/gem_pwrite.c
@@ -84,7 +84,6 @@ static const char *bytes_per_sec(char *buf, double v)
static void test_big_cpu(int fd, int scale)
{
uint64_t offset, size;
- uint32_t *ptr;
uint32_t handle;
size = scale * gem_aperture_size(fd) >> 2;
@@ -95,7 +94,6 @@ static void test_big_cpu(int fd, int scale)
handle = gem_create(fd, size);
gem_set_domain(fd, handle, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU);
- ptr = gem_mmap__wc(fd, handle, 0, size, PROT_READ);
for (offset = 0; offset < size; offset += 4096) {
int suboffset = (offset >> 12) % (4096 - sizeof(offset));
uint64_t tmp;
@@ -105,7 +103,6 @@ static void test_big_cpu(int fd, int scale)
igt_assert_eq(offset, tmp);
}
- munmap(ptr, size);
gem_close(fd, handle);
}