softpipe: Don't use llvm in draw

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>
This commit is contained in:
Jakob Bornecrantz 2012-01-09 00:00:56 +01:00
parent f4863f3923
commit 8783d4227f
1 changed files with 4 additions and 1 deletions

View 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;