diff options
author | Brian Paul <[email protected]> | 2013-06-26 13:36:38 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-27 07:48:18 -0600 |
commit | d43548ca370f2653ad0a103596d5dcfcb20683dd (patch) | |
tree | 7c5e39f52ccb5ec105c8a19568f5cdd440fc57be /src/mesa/program/register_allocate.c | |
parent | 15085b477b092ba4315d13b96112a8d714de8e27 (diff) |
mesa: move declarations before code
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/program/register_allocate.c')
-rw-r--r-- | src/mesa/program/register_allocate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index ea06a07c6af..4eed0b5aab7 100644 --- a/src/mesa/program/register_allocate.c +++ b/src/mesa/program/register_allocate.c @@ -630,9 +630,10 @@ ra_get_best_spill_node(struct ra_graph *g) * colored that we couldn't manage to color in ra_select(). */ for (i = g->stack_optimistic_start; i < g->stack_count; i++) { + float cost, benefit; + n = g->stack[i]; - float cost = g->nodes[n].spill_cost; - float benefit; + cost = g->nodes[n].spill_cost; if (cost <= 0.0) continue; |