From: Daniel Vetter Date: Mon, 6 Jun 2011 18:16:35 +0000 (+0200) Subject: gem_stress: avoid division by 0 X-Git-Tag: 1.1~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1095a825c0acaecf51f97741eacf14acd9bf901e;p=profile%2Fextras%2Fintel-gpu-tools.git gem_stress: avoid division by 0 Without this height would be 16 with the minimal buffer size. Signed-off-by: Daniel Vetter --- 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);