intel: Remove unnecessary minimum pitch alignment to 32 bytes.
authorEric Anholt <eric@anholt.net>
Thu, 23 Sep 2010 22:47:53 +0000 (15:47 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 23 Sep 2010 23:04:55 +0000 (16:04 -0700)
This broke with the cleanup I did in convolution removal.  It's
unnecessary anyway since region_alloc_tiled adjusts pitches for us (64
byte alignment)

src/mesa/drivers/dri/intel/intel_tex_image.c

index f8cb50797e10b77099fbd204fe79faec80e046df..4732efd7d793ba29ba69b0f6cd1a3c11cc4bbc7b 100644 (file)
@@ -333,12 +333,6 @@ intelTexImage(GLcontext * ctx,
    }
    else {
       texelBytes = _mesa_get_format_bytes(texImage->TexFormat);
-      
-      /* Minimum pitch of 32 bytes */
-      if (width * texelBytes < 32) {
-        width = 32 / texelBytes;
-        texImage->RowStride = width;
-      }
 
       if (!intelImage->mt) {      
          assert(texImage->RowStride == width);