Mesa (master): ra: move declarations before code to fix MSVC build

Brian Paul brianp at kemper.freedesktop.org
Thu Aug 14 14:55:23 UTC 2014


Module: Mesa
Branch: master
Commit: 088106fa798adf43b7965c2d1861d2905c63d062
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=088106fa798adf43b7965c2d1861d2905c63d062

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Aug 14 08:44:06 2014 -0600

ra: move declarations before code to fix MSVC build

Trivial.

---

 src/mesa/program/register_allocate.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c
index d81a47f..db2be5d 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;




More information about the mesa-commit mailing list