draw: Make LLVM integration work without llvmpipe too (e.g. sofptipe).
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 21 Apr 2010 16:30:39 +0000 (17:30 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 21 Apr 2010 21:58:41 +0000 (22:58 +0100)
Prevents the assertion failure.

src/gallium/auxiliary/draw/draw_context.c

index 710bf79..02abddf 100644 (file)
@@ -49,6 +49,7 @@ struct draw_context *draw_create( struct pipe_context *pipe )
       goto fail;
 
 #if HAVE_LLVM
+   lp_build_init();
    assert(lp_build_engine);
    draw->engine = lp_build_engine;
 #endif