r300: move declaration before code
authorBrian Paul <brianp@vmware.com>
Fri, 20 May 2011 03:23:39 +0000 (21:23 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 20 May 2011 03:23:39 +0000 (21:23 -0600)
src/mesa/drivers/dri/r300/compiler/radeon_compiler_util.c

index c8001ba8c1863e9e71cc654d0707bac2982c022b..2742721f80015ea25031e8d8f9c355505c6cedad 100644 (file)
@@ -534,10 +534,10 @@ int rc_get_max_index(
        rc_register_file file)
 {
        struct max_data data;
+       struct rc_instruction * inst;
        data.Max = 0;
        data.HasFileType = 0;
        data.File = file;
-       struct rc_instruction * inst;
        for (inst = c->Program.Instructions.Next;
                                        inst != &c->Program.Instructions;
                                        inst = inst->Next) {