diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-13 08:36:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-13 10:10:41 +0100 |
commit | 4186a2d0e3e200663c2aa999b725e2fa77b49bf8 (patch) | |
tree | a678b3fec22631adf49ede0a94b8682b16898cc3 | |
parent | 3bdafec92fae2d04cb69354ffc26e1e32ac60d65 (diff) |
igt/gem_pwrite: Use DOMAIN_WC for access via gem_mmap__wc
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96563
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/gem_pwrite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c index 8db5454c..b61b4466 100644 --- a/tests/gem_pwrite.c +++ b/tests/gem_pwrite.c @@ -173,7 +173,7 @@ static void test_big_gtt(int fd, int scale, unsigned flags) int suboffset = (offset >> 12) % (4096 / sizeof(offset) - 1) * sizeof(offset); gem_write(fd, handle, offset + suboffset, &offset, sizeof(offset)); - gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, 0); + gem_set_domain(fd, handle, I915_GEM_DOMAIN_WC, 0); igt_assert_eq_u64(ptr[(offset + suboffset)/sizeof(offset)], offset); } } @@ -183,7 +183,7 @@ static void test_big_gtt(int fd, int scale, unsigned flags) for (offset = size >> 12; offset--; ) { int suboffset = (4096 - (offset % (4096 - sizeof(offset)))) & -sizeof(offset); gem_write(fd, handle, (offset<<12) + suboffset, &offset, sizeof(offset)); - gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, 0); + gem_set_domain(fd, handle, I915_GEM_DOMAIN_WC, 0); igt_assert_eq_u64(ptr[((offset<<12) + suboffset)/sizeof(offset)], offset); } } @@ -196,7 +196,7 @@ static void test_big_gtt(int fd, int scale, unsigned flags) tmp = (tmp << 12) + suboffset; gem_write(fd, handle, tmp, &offset, sizeof(offset)); - gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, 0); + gem_set_domain(fd, handle, I915_GEM_DOMAIN_WC, 0); igt_assert_eq_u64(ptr[tmp/sizeof(offset)], offset); } } |