From: Brian Paul Date: Fri, 22 Oct 2010 14:59:06 +0000 (-0600) Subject: mesa: move declaration before code X-Git-Tag: 062012170305~9332 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd2499b484b34e7efb8800f57c915c2f62ab1db4;p=profile%2Fivi%2Fmesa.git mesa: move declaration before code --- diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index a6aa7f3..ada6e35 100644 --- a/src/mesa/program/register_allocate.c +++ b/src/mesa/program/register_allocate.c @@ -398,11 +398,12 @@ ra_get_best_spill_node(struct ra_graph *g) for (n = 0; n < g->count; n++) { float cost = g->nodes[n].spill_cost; + float benefit; if (cost <= 0.0) continue; - float benefit = ra_get_spill_benefit(g, n); + benefit = ra_get_spill_benefit(g, n); if (benefit / cost > best_benefit) { best_benefit = benefit / cost;