Commit 10f903aa authored by Chris Wilson's avatar Chris Wilson 🤔

igt/gem_pwrite: Check that mmap(wc) succeeds

Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent cd812a4e
......@@ -121,6 +121,8 @@ static void test_big_gtt(int fd, int scale)
gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
ptr = gem_mmap__wc(fd, handle, 0, size, PROT_READ);
igt_assert(ptr);
for (offset = 0; offset < size; offset += 4096) {
int suboffset = (offset >> 12) % (4096 / sizeof(offset) - 1) * sizeof(offset);
......
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