From: Michel Dänzer Date: Wed, 22 Jun 2011 14:23:36 +0000 (+0200) Subject: r600g: Fix use of uninitialized local variable extra_size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb2c9b5814f7c6a5b37bc9063b1593095ea4f620;p=mesa.git r600g: Fix use of uninitialized local variable extra_size. Should fix http://bugs.freedesktop.org/show_bug.cgi?id=38566 . --- diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 8c98a5a277f..8e75d847dc5 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -243,7 +243,7 @@ static void r600_setup_miptree(struct pipe_screen *screen, struct radeon *radeon = (struct radeon *)screen->winsys; enum chip_class chipc = r600_get_family_class(radeon); unsigned size, layer_size, i, offset; - unsigned nblocksx, nblocksy, extra_size; + unsigned nblocksx, nblocksy, extra_size = 0; for (i = 0, offset = 0; i <= ptex->last_level; i++) { unsigned blocksize = util_format_get_blocksize(ptex->format);