diff options
author | Zack Rusin <[email protected]> | 2010-04-19 12:46:08 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-04-19 12:53:27 -0400 |
commit | 7c4208c3a0f48955720f41b3cb320a120c505ba6 (patch) | |
tree | 4e6f60cd8d6670d93f0e1a7786188d05389c94dd /src/gallium/auxiliary/draw/draw_llvm.c | |
parent | deee1523639b4b59841ecbbdebe6797541e0e7d1 (diff) |
draw llvm: fix constructor mess
use just one constructor to figure out whether to use llvm.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index a5403a49c35..e3ef9e425fa 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -196,7 +196,7 @@ draw_llvm_create(struct draw_context *draw) init_globals(llvm); -#if 1 +#if 0 LLVMDumpModule(llvm->module); #endif @@ -223,26 +223,6 @@ draw_llvm_prepare(struct draw_llvm *llvm, int num_inputs) return variant; } - -struct draw_context *draw_create_with_llvm(void) -{ - struct draw_context *draw = CALLOC_STRUCT( draw_context ); - if (draw == NULL) - goto fail; - - assert(lp_build_engine); - draw->engine = lp_build_engine; - - if (!draw_init(draw)) - goto fail; - - return draw; - -fail: - draw_destroy( draw ); - return NULL; -} - static void generate_vs(struct draw_llvm *llvm, LLVMBuilderRef builder, |