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 710bf792fc381e7dc6d9d7e8fab89a2508ec04da..02abddf1491ba7c137c14593b6cf30db31671eb3 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