summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-07-27 15:33:45 -0700
committerVinson Lee <[email protected]>2010-07-27 15:33:45 -0700
commit6a20539580e1b7ae921d497fbf66a8fd545efea4 (patch)
tree4cf4c24120f0c8f49826e93ffcdd88880face167 /src/gallium
parentcc09dc2773a729ab361c58ea5fc70ff070d0b1d2 (diff)
r600g: Move declaration before code.
Fixes SCons build.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index dcedf56c110..17e9c14d6b2 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -651,6 +651,9 @@ static int tgsi_lit(struct r600_shader_ctx *ctx)
if (inst->Dst[0].Register.WriteMask & (1 << 2))
{
+ int chan;
+ int sel;
+
/* dst.z = log(src.y) */
memset(&alu, 0, sizeof(struct r600_bc_alu));
alu.inst = V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_LOG_CLAMPED;
@@ -665,8 +668,8 @@ static int tgsi_lit(struct r600_shader_ctx *ctx)
if (r)
return r;
- int chan = alu.dst.chan;
- int sel = alu.dst.sel;
+ chan = alu.dst.chan;
+ sel = alu.dst.sel;
/* tmp.x = amd MUL_LIT(src.w, dst.z, src.x ) */
memset(&alu, 0, sizeof(struct r600_bc_alu));