From 1095a825c0acaecf51f97741eacf14acd9bf901e Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 6 Jun 2011 20:16:35 +0200 Subject: [PATCH] gem_stress: avoid division by 0 Without this height would be 16 with the minimal buffer size. 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 a55caf7..d098a9b 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -408,7 +408,7 @@ static void init_buffer(struct scratch_buf *buf, unsigned size) buf->bo = drm_intel_bo_alloc(bufmgr, "tiled bo", size, 4096); assert(buf->bo); buf->tiling = I915_TILING_NONE; - buf->stride = 8192; + buf->stride = 4096; if (options.no_hw) buf->data = malloc(size); -- 2.7.4