gem_stress: submit batch if there's only one fence left
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 21 Mar 2011 21:13:18 +0000 (22:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 21 Mar 2011 21:13:18 +0000 (22:13 +0100)
... for a copy might use up to two fences!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_stress.c

index 0686773..751d706 100644 (file)
@@ -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);
        }