Commit cd812a4e authored by Chris Wilson's avatar Chris Wilson 🤔

igt/gem_pwrite: Delete unused mmap(wc) for the big CPU test

Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent 49bcdc84
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment