gallivm: Move declaration before code.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Jan 2012 18:59:29 +0000 (18:59 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Jan 2012 18:59:29 +0000 (18:59 +0000)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c

index 9688acc32297992fc8e06655bff414b649c98002..e5b1b83819d9c4e86806a2f9274a3e0ab8b1eb4a 100644 (file)
@@ -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);