mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-24 16:26:13 +00:00
gem_stress: avoid division by 0
Without this height would be 16 with the minimal buffer size. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
fde66f9bf4
commit
1095a825c0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user