projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde66f9
)
gem_stress: avoid division by 0
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 6 Jun 2011 18:16:35 +0000
(20:16 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 6 Jun 2011 18:16:35 +0000
(20:16 +0200)
Without this height would be 16 with the minimal buffer size.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_stress.c
patch
|
blob
|
history
diff --git
a/tests/gem_stress.c
b/tests/gem_stress.c
index
a55caf7
..
d098a9b
100644
(file)
--- 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);