From 3f10ff85bd2bb65e49e52ec4f025dc977985b4b6 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 21 Mar 2011 22:13:18 +0100 Subject: [PATCH] gem_stress: submit batch if there's only one fence left ... for a copy might use up to two fences! Signed-off-by: Daniel Vetter --- tests/gem_stress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_stress.c b/tests/gem_stress.c index 06867738..751d7067 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -287,7 +287,7 @@ static void blitter_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned s if (dst->tiling) fence_storm--; - if (fence_storm <= 0) { + if (fence_storm <= 1) { fence_storm = 0; intel_batchbuffer_flush(batch); }