Mesa (master): softpipe: Don't use llvm in draw

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Mon Jan 9 12:40:25 PST 2012


Module: Mesa
Branch: master
Commit: 8783d4227ff1d1b2bf816180f8d95466a25c786f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8783d4227ff1d1b2bf816180f8d95466a25c786f

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Mon Jan  9 00:00:56 2012 +0100

softpipe: Don't use llvm in draw

But add a option to force it on for testing.

Signed-off-by: Jakob Bornecrantz <wallbraker at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/drivers/softpipe/sp_context.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c
index a720600..324d9fd 100644
--- a/src/gallium/drivers/softpipe/sp_context.c
+++ b/src/gallium/drivers/softpipe/sp_context.c
@@ -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;
 



More information about the mesa-commit mailing list