summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-24 11:15:43 -0700
committerBrian Paul <[email protected]>2012-01-24 11:15:43 -0700
commit3e01c3f3baee82524e23107aecb2de4c7ee8b978 (patch)
tree1f73436040aae07d48139a2b02e853f72c358340 /src
parent64cb0cae55a0f71a8f2feffc1c0067abc5e56a1a (diff)
softpipe: move var initialization to silence warning
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_derived.c3
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 7b2b04e84e9..b9b0f94289f 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]) {