softpipe: Don't use llvm in draw
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 8 Jan 2012 23:00:56 +0000 (00:00 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Mon, 9 Jan 2012 20:39:06 +0000 (21:39 +0100)
But add a option to force it on for testing.

Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_context.c

index a720600..324d9fd 100644 (file)
@@ -305,7 +305,10 @@ softpipe_create_context( struct pipe_screen *screen,
    /*
     * Create drawing context and plug our rendering stage into it.
     */
-   softpipe->draw = draw_create(&softpipe->pipe);
+   if (debug_get_bool_option("SOFTPIPE_USE_LLVM", FALSE))
+      softpipe->draw = draw_create(&softpipe->pipe);
+   else
+      softpipe->draw = draw_create_no_llvm(&softpipe->pipe);
    if (!softpipe->draw) 
       goto fail;