diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 968cb78..d776f94 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -236,7 +236,7 @@ drm_intel_gem_bo_tile_size(drm_intel_bufmgr_gem *bufmgr_gem, unsigned long size, max_size = 64*1024*1024; } - if (size > max_size) { + if (size > max_size || size < min_size) { *tiling_mode = I915_TILING_NONE; return size; }