summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-01-30 18:59:29 +0000
committerJosé Fonseca <jfonseca@vmware.com>2012-01-30 18:59:29 +0000
commitdde807b9dc038266fbe594c1a700283df007bf5e (patch)
treeb35abe5964a198e74a2001f324f4911eadf0a7b6 /src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c
parent25ee5a27f30aaeb83232de9bada82534d2d504fc (diff)
downloadexternal_mesa3d-dde807b9dc038266fbe594c1a700283df007bf5e.zip
external_mesa3d-dde807b9dc038266fbe594c1a700283df007bf5e.tar.gz
external_mesa3d-dde807b9dc038266fbe594c1a700283df007bf5e.tar.bz2
gallivm: Move declaration before code.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c
index 9688acc..e5b1b83 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c
@@ -449,7 +449,7 @@ lit_emit(
struct lp_build_tgsi_context * bld_base,
struct lp_build_emit_data * emit_data)
{
- LLVMValueRef tmp0, tmp2;
+ LLVMValueRef tmp0, tmp1, tmp2;
/* dst.x */
emit_data->output[TGSI_CHAN_X] = bld_base->base.one;
@@ -462,7 +462,7 @@ lit_emit(
/* dst.z */
/* XMM[1] = SrcReg[0].yyyy */
- LLVMValueRef tmp1 = emit_data->args[1];
+ tmp1 = emit_data->args[1];
/* XMM[1] = max(XMM[1], 0) */
tmp1 = lp_build_emit_llvm_binary(bld_base, TGSI_OPCODE_MAX,
tmp1, bld_base->base.zero);