diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-13 10:08:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-13 10:10:57 +0100 |
commit | 9372ad64c4e63c111124ba95506b27ce2bb70b47 (patch) | |
tree | a6be35df8a65cbbeeba44d62f706bd4dec72dac3 /tests/gem_storedw_loop.c | |
parent | ae15bfe867e7a65146e44c8e47f272a251c05be1 (diff) |
igt/gem_storedw_loop: Mark up with DOMAIN_WC
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_storedw_loop.c')
-rw-r--r-- | tests/gem_storedw_loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 |