summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-01-13 14:17:01 -0800
committerVinson Lee <[email protected]>2011-01-13 14:17:01 -0800
commita2ab929ab2d7dd4fcbbc5f32c8feabf42cad4d34 (patch)
tree5649315be8f46b49987a8197e31c1742f471400c
parent96f8f8db7bcddec7ef0fce62cf0e23f1c2fb8c8d (diff)
r600g: Move declaration before code in r600_asm.c.
Fixes SCons build.
-rw-r--r--src/gallium/drivers/r600/r600_asm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index e96236e06ee..52dc0688d52 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -700,6 +700,8 @@ static int merge_inst_groups(struct r600_bc *bc, struct r600_bc_alu *slots[5], s
return r;
for (i = 0; i < 5; ++i) {
+ struct r600_bc_alu *alu;
+
/* check number of literals */
if (prev[i] && r600_bc_alu_nliterals(prev[i], literal, &nliteral))
return 0;
@@ -730,7 +732,7 @@ static int merge_inst_groups(struct r600_bc *bc, struct r600_bc_alu *slots[5], s
result[i] = slots[i];
// let's check source gprs
- struct r600_bc_alu *alu = slots[i];
+ alu = slots[i];
num_once_inst += is_alu_once_inst(alu);
num_src = r600_bc_get_num_operands(alu);