OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76bd1c1
)
r600g: Fix use of uninitialized local variable extra_size.
author
Michel Dänzer
<daenzer@vmware.com>
Wed, 22 Jun 2011 14:23:36 +0000
(16:23 +0200)
committer
Michel Dänzer
<daenzer@vmware.com>
Wed, 22 Jun 2011 14:23:36 +0000
(16:23 +0200)
Should fix http://bugs.freedesktop.org/show_bug.cgi?id=38566 .
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index
8c98a5a
..
8e75d84
100644
(file)
--- 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);