llvmpipe: use a define to decide whether to use draw llvm paths
authorZack Rusin <zackr@vmware.com>
Tue, 6 Apr 2010 21:14:30 +0000 (17:14 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 6 Apr 2010 21:15:03 +0000 (17:15 -0400)
right now disabled by default

src/gallium/drivers/llvmpipe/lp_context.c

index 383e4b0614d29bc61d46c06b806de0e9ebff1264..5c476f693f22c3c40ec6bc353f128384bb0973e6 100644 (file)
@@ -47,7 +47,7 @@
 #include "lp_setup.h"
 
 
-
+#define USE_DRAW_LLVM 0
 
 
 static void llvmpipe_destroy( struct pipe_context *pipe )
@@ -182,7 +182,11 @@ llvmpipe_create_context( struct pipe_screen *screen, void *priv )
    /*
     * Create drawing context and plug our rendering stage into it.
     */
+#if USE_DRAW_LLVM
    llvmpipe->draw = draw_create_with_llvm(llvmscreen->engine);
+#else
+   llvmpipe->draw = draw_create();
+#endif
    if (!llvmpipe->draw)
       goto fail;