summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_llvm.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-07 13:49:29 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-04-07 13:49:29 +0100
commitda17623c33cddf96c0f63b32e25ebc33b04a2b14 (patch)
tree57582979e00db04df0f90c8911a223b2e2fb2e26 /src/gallium/auxiliary/draw/draw_llvm.c
parent765dc9fc32cf9016473726fbf4827c2aa4cec0b1 (diff)
llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 121cce3d71..4912b6ac50 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -11,6 +11,7 @@
#include "gallivm/lp_bld_debug.h"
#include "gallivm/lp_bld_tgsi.h"
#include "gallivm/lp_bld_printf.h"
+#include "gallivm/lp_bld_init.h"
#include "util/u_cpu_detect.h"
#include "tgsi/tgsi_dump.h"
@@ -199,12 +200,14 @@ draw_llvm_prepare(struct draw_llvm *llvm, int num_inputs)
}
-struct draw_context *draw_create_with_llvm(LLVMExecutionEngineRef engine)
+struct draw_context *draw_create_with_llvm(void)
{
struct draw_context *draw = CALLOC_STRUCT( draw_context );
if (draw == NULL)
goto fail;
- draw->engine = engine;
+
+ assert(lp_build_engine);
+ draw->engine = lp_build_engine;
if (!draw_init(draw))
goto fail;