r600g: make llvm code compile this time
authorDave Airlie <airlied@redhat.com>
Thu, 27 Nov 2014 04:10:05 +0000 (14:10 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Nov 2014 04:11:23 +0000 (14:11 +1000)
Actually compiling the code helps make it compile.

Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_llvm.c

index 470c65f7af5d3021ee3b9ac3a6dbf57aa8d048e5..e8cae00008093ad75afeee5b36eae4104e3c5d41 100644 (file)
@@ -689,7 +689,7 @@ static void llvm_emit_tex(
                if (emit_data->inst->Dst[0].Register.WriteMask & 4) {
                        LLVMValueRef offset = lp_build_const_int32(bld_base->base.gallivm, 0);
                        LLVMValueRef ZLayer = LLVMBuildExtractElement(gallivm->builder,
-                               llvm_load_const_buffer(bld_base, offset, LLVM_R600_BUFFER_INFO_CONST_BUFFER,
+                               llvm_load_const_buffer(bld_base, offset, LLVM_R600_BUFFER_INFO_CONST_BUFFER),
                                lp_build_const_int32(gallivm, 0), "");
 
                        emit_data->output[0] = LLVMBuildInsertElement(gallivm->builder, emit_data->output[0], ZLayer, lp_build_const_int32(gallivm, 2), "");