summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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,