From 9372ad64c4e63c111124ba95506b27ce2bb70b47 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 13 Apr 2017 10:08:09 +0100 Subject: igt/gem_storedw_loop: Mark up with DOMAIN_WC Signed-off-by: Chris Wilson --- tests/gem_storedw_loop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/gem_storedw_loop.c') diff --git a/tests/gem_storedw_loop.c b/tests/gem_storedw_loop.c index f3922de8..09636520 100644 --- a/tests/gem_storedw_loop.c +++ b/tests/gem_storedw_loop.c @@ -55,13 +55,13 @@ mmap_coherent(int fd, uint32_t handle, int size) if (gem_has_llc(fd)) { coherent_domain = I915_GEM_DOMAIN_CPU; return gem_mmap__cpu(fd, handle, 0, size, PROT_WRITE); - } - - coherent_domain = I915_GEM_DOMAIN_GTT; - if (gem_mmap__has_wc(fd)) + } else if (gem_mmap__has_wc(fd)) { + coherent_domain = I915_GEM_DOMAIN_WC; return gem_mmap__wc(fd, handle, 0, size, PROT_WRITE); - else + } else { + coherent_domain = I915_GEM_DOMAIN_GTT; return gem_mmap__gtt(fd, handle, size, PROT_WRITE); + } } static void -- cgit v1.2.3