From c2e79b2502abda4292efdc313bd7efaa7e7e697e Mon Sep 17 00:00:00 2001 From: Arthur Huillet Date: Wed, 5 Jan 2011 19:07:19 +0100 Subject: [PATCH] i915: disable texture tiling for textures smaller than 1024x1024 in order to avoid consuming too much memory. Without relaxed fencing available, small textures will be inflated to 1MB in RAM. Signed-off-by: Arthur Huillet --- src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index d316d34..64a2bf4 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -125,6 +125,9 @@ intel_miptree_create(struct intel_context *intel, tiling = I915_TILING_X; } + if (width0 < 1024 && height0 < 1024) + tiling = I915_TILING_NONE; + mt = intel_miptree_create_internal(intel, target, internal_format, first_level, last_level, width0, height0, depth0, cpp, compress_byte, -- 1.7.3.4