summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-03-28 21:42:26 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-03-29 22:49:08 +0200
commit2374af20feaaeac849b9a506aeb1e8e9028e5ff7 (patch)
treee4572af423d90ab1a2173ba3d2d1bc01dfee1279
parent6a860b75075e68eac786e1b4b8ec76b2dfbedb1a (diff)
gem_stress: fix set_tiling
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/gem_stress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_stress.c b/tests/gem_stress.c
index 238f4ef7..3fe1248a 100644
--- a/tests/gem_stress.c
+++ b/tests/gem_stress.c
@@ -448,7 +448,7 @@ static void set_tiling(drm_intel_bo *bo, unsigned *tiling, unsigned stride)
*/
set_tiling.handle = bo->handle;
set_tiling.tiling_mode = *tiling;
- set_tiling.stride = stride;
+ set_tiling.stride = tiling ? stride : 0;
ret = ioctl(drm_fd,
DRM_IOCTL_I915_GEM_SET_TILING,