[Mesa-dev] [PATCH 2/3] i965: Use tiling even for compressed textures.

Kenneth Graunke kenneth at whitecape.org
Mon Apr 8 19:27:37 PDT 2013


The code has no rationale for why we would force compressed textures to
be untiled, and it appears to work fine.  Git archeology indicates that
it's been that way dating back to when we first started tiling.

Improves performance in GLB27_TRex_C24Z16_FixedTimeStep at 1280x720 by
10.0529% +/- 0.573075% (n=12).  Improves performance in Xonotic by
4.56409% +/- 0.27965% (n=3).

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index 402972a..8dd04be 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -315,7 +315,7 @@ intel_miptree_choose_tiling(struct intel_context *intel,
       return I915_TILING_NONE;
    }
 
-   if (!intel->use_texture_tiling || _mesa_is_format_compressed(format))
+   if (!intel->use_texture_tiling)
       return I915_TILING_NONE;
 
    if (force_y_tiling)
-- 
1.8.1.1



More information about the mesa-dev mailing list