From: Brian Paul Date: Tue, 19 Jan 2010 18:14:00 +0000 (-0700) Subject: softpipe: remove redundant assignments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aec3fe82e490efa36c432b2f43cbeebefa91e88f;p=mesa.git softpipe: remove redundant assignments We initialized width/height/depth from pt->width0/height0/depth0 above. --- diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c index a9436a33942..fae72c81aa1 100644 --- a/src/gallium/drivers/softpipe/sp_texture.c +++ b/src/gallium/drivers/softpipe/sp_texture.c @@ -57,13 +57,8 @@ softpipe_texture_layout(struct pipe_screen *screen, unsigned width = pt->width0; unsigned height = pt->height0; unsigned depth = pt->depth0; - unsigned buffer_size = 0; - pt->width0 = width; - pt->height0 = height; - pt->depth0 = depth; - for (level = 0; level <= pt->last_level; level++) { spt->stride[level] = util_format_get_stride(pt->format, width);