summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_tex_image.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-09-23 15:47:53 -0700
committerEric Anholt <eric@anholt.net>2010-09-23 16:04:55 -0700
commit2337f364b193c6379ecd5744743b26a5e75e73ae (patch)
tree41687aeb9bf9d37e0f3667798bf432e3c868d39f /src/mesa/drivers/dri/intel/intel_tex_image.c
parent92762842a0724831a92aa9f76eb52a19cc179649 (diff)
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)
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_image.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_image.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c
index f8cb50797e..4732efd7d7 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);