projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15085b4
)
mesa: move declarations before code
author
Brian Paul
<brianp@vmware.com>
Wed, 26 Jun 2013 19:36:38 +0000
(13:36 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 27 Jun 2013 13:48:18 +0000
(07:48 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/program/register_allocate.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/register_allocate.c
b/src/mesa/program/register_allocate.c
index ea06a07c6af4facbc7dfe0722b75635938958df9..4eed0b5aab77929599903c8fa5fc4755a255fa78 100644
(file)
--- 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;