Commit 1095a825 authored by Daniel Vetter's avatar Daniel Vetter

gem_stress: avoid division by 0

Without this height would be 16 with the minimal buffer size.
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent fde66f9b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment