mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
igt/gem_pwrite: Check that mmap(wc) succeeds
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
cd812a4e89
commit
10f903aa23
@ -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);
|
gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
|
||||||
|
|
||||||
ptr = gem_mmap__wc(fd, handle, 0, size, PROT_READ);
|
ptr = gem_mmap__wc(fd, handle, 0, size, PROT_READ);
|
||||||
|
igt_assert(ptr);
|
||||||
|
|
||||||
for (offset = 0; offset < size; offset += 4096) {
|
for (offset = 0; offset < size; offset += 4096) {
|
||||||
int suboffset = (offset >> 12) % (4096 / sizeof(offset) - 1) * sizeof(offset);
|
int suboffset = (offset >> 12) % (4096 / sizeof(offset) - 1) * sizeof(offset);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user