diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-04 09:06:38 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-03 13:52:05 +0100 |
commit | 4b3828843a4a93da8a24f0bf0c3d8bb4b5d1dc50 (patch) | |
tree | dc362db3f991fc2bb35f7f9b51c9c125cc94e8b8 | |
parent | ca1d1c754e295cb8c8d72b115f7ecebfc853c78f (diff) |
sync
-rw-r--r-- | tests/prime_vgem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/prime_vgem.c b/tests/prime_vgem.c index 38e2026a..d21de97b 100644 --- a/tests/prime_vgem.c +++ b/tests/prime_vgem.c @@ -444,10 +444,12 @@ static void test_gtt_interleaved(int vgem, int i915) gtt = gem_mmap__gtt(i915, handle, scratch.size, PROT_WRITE); for (i = 0; i < 1024; i++) { gtt[1024*i] = i; + __sync_synchronize(); /* The read from WC should act as a flush for the GTT wcb */ igt_assert_eq(ptr[1024*i], i); ptr[1024*i] = ~i; + __sync_synchronize(); /* The read from GTT should act as a flush for the WC wcb */ igt_assert_eq(gtt[1024*i], ~i); } |