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 <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2011-03-21 22:13:18 +01:00
parent 652d9eb983
commit 3f10ff85bd

View 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);
}