Mesa (master): intel: Remove unnecessary minimum pitch alignment to 32 bytes.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Sep 23 23:05:50 UTC 2010
Module: Mesa
Branch: master
Commit: 2337f364b193c6379ecd5744743b26a5e75e73ae
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2337f364b193c6379ecd5744743b26a5e75e73ae
Author: Eric Anholt <eric at anholt.net>
Date: Thu Sep 23 15:47:53 2010 -0700
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)
---
src/mesa/drivers/dri/intel/intel_tex_image.c | 6 ------
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 f8cb507..4732efd 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);
More information about the mesa-commit
mailing list