diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-21 15:46:59 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-22 18:26:11 +0000 |
commit | 6d27acafa3a2d80b6330e2380a3548bc98dcc3e5 (patch) | |
tree | a68fa8cc5c4949ee64f0f4eb833009af7a0e199d /tests | |
parent | e2ae8b9793d058d29c8e8452cd7d60961034629b (diff) |
igt/gem_exec_await: Flush the WCB before attempting to queue more work
Ensure that the terminating write into WC-memory is flushed before we
might trigger a wait for ring space.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_exec_await.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_exec_await.c b/tests/gem_exec_await.c index 9c446792..28b280ff 100644 --- a/tests/gem_exec_await.c +++ b/tests/gem_exec_await.c @@ -222,6 +222,7 @@ static void wide(int fd, int ring_size, int timeout, unsigned int flags) for (unsigned e = 0; e < nengine; e++) exec[e].cmd[0] = MI_BATCH_BUFFER_END; + __sync_synchronize(); } igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0); |