summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-04-06 17:14:30 -0400
committerZack Rusin <zackr@vmware.com>2010-04-06 17:15:03 -0400
commit695a029e9b8c70a34c5cde01ab32ac377e513707 (patch)
tree2c0bd62ac04b1ec5466e050ed71e136d71e7fd06
parent06bda76c08618eaf68de70f4f776329e6ef1f196 (diff)
llvmpipe: use a define to decide whether to use draw llvm pathsgallium_draw_llvm
right now disabled by default
-rw-r--r--src/gallium/drivers/llvmpipe/lp_context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c
index 383e4b0614d..5c476f693f2 100644
--- a/src/gallium/drivers/llvmpipe/lp_context.c
+++ b/src/gallium/drivers/llvmpipe/lp_context.c
@@ -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;