Mesa (master): intel: Remove an unneeded hunk that slipped in with texture tiling.

Eric Anholt anholt at kemper.freedesktop.org
Tue Jun 9 23:15:27 UTC 2009


Module: Mesa
Branch: master
Commit: 38eddf04ed04966db09b67de4cdabef681dc2696
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=38eddf04ed04966db09b67de4cdabef681dc2696

Author: Eric Anholt <eric at anholt.net>
Date:   Sat Jun  6 07:22:00 2009 +0000

intel: Remove an unneeded hunk that slipped in with texture tiling.

intel_miptree_pitch_align does this later on.

---

 src/mesa/drivers/dri/intel/intel_tex_layout.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_layout.c b/src/mesa/drivers/dri/intel/intel_tex_layout.c
index b8be7ef..2c1b722 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_layout.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_layout.c
@@ -88,11 +88,6 @@ void i945_miptree_layout_2d( struct intel_context *intel,
 
        if (mip1_width > mt->pitch) {
            mt->pitch = mip1_width;
-
-	   if (tiling == I915_TILING_X)
-	      mt->pitch = ALIGN(mt->pitch * mt->cpp, 512) / mt->cpp;
-	   if (tiling == I915_TILING_Y)
-	      mt->pitch = ALIGN(mt->pitch * mt->cpp, 128) / mt->cpp;
        }
    }
 




More information about the mesa-commit mailing list