diff options
author | Michel Dänzer <[email protected]> | 2011-06-22 16:23:36 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2011-06-22 16:23:36 +0200 |
commit | eb2c9b5814f7c6a5b37bc9063b1593095ea4f620 (patch) | |
tree | d64bcc6029fe343c53deb540c23f193a989ccfcb | |
parent | 76bd1c1818e58d78537cf46ad6cc78425e6ae8f2 (diff) |
r600g: Fix use of uninitialized local variable extra_size.
Should fix http://bugs.freedesktop.org/show_bug.cgi?id=38566 .
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |