Mesa (master): r600g: drop width/height per level storage.
Dave Airlie
airlied at kemper.freedesktop.org
Fri Oct 8 10:00:24 UTC 2010
Module: Mesa
Branch: master
Commit: 8d6a38d7b3ea85bd2199f2797e3580d76cca2f6f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d6a38d7b3ea85bd2199f2797e3580d76cca2f6f
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Oct 8 19:55:05 2010 +1000
r600g: drop width/height per level storage.
these aren't used anywhere, so just waste memory.
---
src/gallium/drivers/r600/r600_resource.h | 2 --
src/gallium/drivers/r600/r600_texture.c | 4 ----
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h
index f6377ea..3239609 100644
--- a/src/gallium/drivers/r600/r600_resource.h
+++ b/src/gallium/drivers/r600/r600_resource.h
@@ -51,8 +51,6 @@ struct r600_resource_texture {
struct r600_resource resource;
unsigned long offset[PIPE_MAX_TEXTURE_LEVELS];
unsigned long pitch[PIPE_MAX_TEXTURE_LEVELS];
- unsigned long width[PIPE_MAX_TEXTURE_LEVELS];
- unsigned long height[PIPE_MAX_TEXTURE_LEVELS];
unsigned long layer_size[PIPE_MAX_TEXTURE_LEVELS];
unsigned long pitch_override;
unsigned long bpt;
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index c46bfa6..db88346 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -99,8 +99,6 @@ static void r600_setup_miptree(struct r600_resource_texture *rtex, enum chip_cla
rtex->offset[i] = offset;
rtex->layer_size[i] = layer_size;
rtex->pitch[i] = pitch;
- rtex->width[i] = w;
- rtex->height[i] = h;
offset += size;
}
rtex->size = offset;
@@ -217,8 +215,6 @@ struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen,
rtex->pitch_override = whandle->stride;
rtex->bpt = util_format_get_blocksize(templ->format);
rtex->pitch[0] = whandle->stride;
- rtex->width[0] = templ->width0;
- rtex->height[0] = templ->height0;
rtex->offset[0] = 0;
rtex->size = align(rtex->pitch[0] * templ->height0, 64);
More information about the mesa-commit
mailing list