r600g: drop width/height per level storage.
authorDave Airlie <airlied@redhat.com>
Fri, 8 Oct 2010 09:55:05 +0000 (19:55 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Oct 2010 09:55:05 +0000 (19:55 +1000)
these aren't used anywhere, so just waste memory.

src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_texture.c

index f6377ea802b9ccea1e6c470fe5a572c1cb51c59f..323960960d628bc20c2655c486096f35da815e31 100644 (file)
@@ -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;
index c46bfa66ba1a9ab85a2d3791fe3ece349efcc506..db88346afbef2c1d943e8ccc6d695ff10ca7da6c 100644 (file)
@@ -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);