projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e2cde
)
nvc0: Fix uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Tue, 15 Feb 2011 08:25:08 +0000
(
00:25
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 15 Feb 2011 08:27:16 +0000
(
00:27
-0800)
Fixes this GCC warning.
nvc0_tgsi_to_nc.c: In function 'bld_tex':
nvc0_tgsi_to_nc.c:1392: warning: 'dim' may be used uninitialized in this function
src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
index 72bfcd0c95f7c672a623c470056cd5cb9ef60565..687def0344d91b9cdfc96ebfdc6815cd6733b941 100644
(file)
--- a/
src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
+++ b/
src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
@@
-1175,7
+1175,7
@@
static INLINE void
describe_texture_target(unsigned target, int *dim,
int *array, int *cube, int *shadow)
{
- *array = *cube = *shadow = 0;
+ *
dim = *
array = *cube = *shadow = 0;
switch (target) {
case TGSI_TEXTURE_1D: