From: Eric Anholt Date: Thu, 23 Sep 2010 22:47:53 +0000 (-0700) Subject: intel: Remove unnecessary minimum pitch alignment to 32 bytes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2337f364b193c6379ecd5744743b26a5e75e73ae;p=mesa.git intel: Remove unnecessary minimum pitch alignment to 32 bytes. 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) --- diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index f8cb50797e1..4732efd7d79 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_image.c +++ b/src/mesa/drivers/dri/intel/intel_tex_image.c @@ -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);