Mesa (8.0): softpipe: move var initialization to silence warning
Brian Paul
brianp at kemper.freedesktop.org
Tue Jan 31 14:05:20 UTC 2012
Module: Mesa
Branch: 8.0
Commit: 6bb4823f7de47d061467c3390119fe72d7a2e288
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6bb4823f7de47d061467c3390119fe72d7a2e288
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jan 24 11:15:43 2012 -0700
softpipe: move var initialization to silence warning
(cherry picked from commit 3e01c3f3baee82524e23107aecb2de4c7ee8b978)
---
src/gallium/drivers/softpipe/sp_state_derived.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_state_derived.c b/src/gallium/drivers/softpipe/sp_state_derived.c
index 7b2b04e..b9b0f94 100644
--- 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]) {
More information about the mesa-commit
mailing list