summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/prime_vgem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/prime_vgem.c b/tests/prime_vgem.c
index 5bd13cda..2effcfa7 100644
--- a/tests/prime_vgem.c
+++ b/tests/prime_vgem.c
@@ -58,7 +58,7 @@ static void test_read(int vgem, int i915)
gem_close(i915, handle);
}
-static void test_fence_read(int vgem, int i915)
+static void test_fence_read(int i915, int vgem)
{
struct vgem_bo scratch;
uint32_t handle;
@@ -86,6 +86,8 @@ static void test_fence_read(int vgem, int i915)
gem_close(i915, handle);
}
+ sleep(1);
+
ptr = vgem_mmap(vgem, &scratch, PROT_WRITE);
for (i = 0; i < 1024; i++)
ptr[1024*i] = i;