projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64cb0ca
)
softpipe: move var initialization to silence warning
author
Brian Paul
<brianp@vmware.com>
Tue, 24 Jan 2012 18:15:43 +0000
(11:15 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 24 Jan 2012 18:15:43 +0000
(11:15 -0700)
src/gallium/drivers/softpipe/sp_state_derived.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_state_derived.c
b/src/gallium/drivers/softpipe/sp_state_derived.c
index 7b2b04e84e9b4f8876ed23b563b0954add350e6b..b9b0f94289fdfef1684a16706e11890517cf9bc3 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_state_derived.c
+++ b/
src/gallium/drivers/softpipe/sp_state_derived.c
@@
-88,7
+88,7
@@
softpipe_get_vertex_info(struct softpipe_context *softpipe)
vinfo->num_attribs = 0;
for (i = 0; i < fsInfo->num_inputs; i++) {
int src;
- enum interp_mode interp;
+ enum interp_mode interp
= INTERP_LINEAR
;
switch (fsInfo->input_interpolate[i]) {
case TGSI_INTERPOLATE_CONSTANT:
@@
-105,7
+105,6
@@
softpipe_get_vertex_info(struct softpipe_context *softpipe)
break;
default:
assert(0);
- interp = INTERP_LINEAR;
}
switch (fsInfo->input_semantic_name[i]) {