summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/register_allocate.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-08-14 08:44:06 -0600
committerBrian Paul <[email protected]>2014-08-14 08:53:45 -0600
commit088106fa798adf43b7965c2d1861d2905c63d062 (patch)
treebf62d14a033ea76822bcc897caa1213fc278d11b /src/mesa/program/register_allocate.c
parentbfb6b7666534479324f5c13f25330cc9a5d0d818 (diff)
ra: move declarations before code to fix MSVC build
Trivial.
Diffstat (limited to 'src/mesa/program/register_allocate.c')
-rw-r--r--src/mesa/program/register_allocate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c
index d81a47f24a7..db2be5dfad4 100644
--- a/src/mesa/program/register_allocate.c
+++ b/src/mesa/program/register_allocate.c
@@ -456,11 +456,11 @@ ra_simplify(struct ra_graph *g)
int i;
while (progress) {
- progress = false;
-
unsigned int best_optimistic_node = ~0;
unsigned int lowest_q_total = ~0;
+ progress = false;
+
for (i = g->count - 1; i >= 0; i--) {
if (g->nodes[i].in_stack || g->nodes[i].reg != NO_REG)
continue;