Revert "r300g/swtcl: re-enable LLVM"
authorJakob Bornecrantz <wallbraker@gmail.com>
Mon, 24 Jan 2011 02:25:17 +0000 (03:25 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Mon, 24 Jan 2011 02:26:59 +0000 (03:26 +0100)
This reverts commit 88550083b3857184445075e70fed8b2eed4952a1.

src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_screen.c

index 91263ad7bcdb1c2c78922e33fd1f586051aa3ab0..e265bdbd3b0a7f610b960a49449c0c5af313e04b 100644 (file)
 #include "r300_screen_buffer.h"
 #include "r300_winsys.h"
 
-#ifdef HAVE_LLVM
-#include "gallivm/lp_bld_init.h"
-#endif
-
 static void r300_update_num_contexts(struct r300_screen *r300screen,
                                      int diff)
 {
@@ -106,14 +102,9 @@ static void r300_destroy_context(struct pipe_context* context)
 
     if (r300->blitter)
         util_blitter_destroy(r300->blitter);
-    if (r300->draw) {
+    if (r300->draw)
         draw_destroy(r300->draw);
 
-#ifdef HAVE_LLVM
-        gallivm_destroy(r300->gallivm);
-#endif
-    }
-
     if (r300->upload_vb)
         u_upload_destroy(r300->upload_vb);
     if (r300->upload_ib)
@@ -432,12 +423,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
 
     if (!r300screen->caps.has_tcl) {
         /* Create a Draw. This is used for SW TCL. */
-#ifdef HAVE_LLVM
-        r300->gallivm = gallivm_create();
-        r300->draw = draw_create_gallivm(&r300->context, r300->gallivm);
-#else
         r300->draw = draw_create(&r300->context);
-#endif
         if (r300->draw == NULL)
             goto fail;
         /* Enable our renderer. */
index e09cf87f733eac04572145cfa2f7a6c3f9e68475..9030f1bb982de2a08e5b999bed14a70ff3067e8c 100644 (file)
@@ -456,7 +456,6 @@ struct r300_context {
     struct r300_screen *screen;
 
     /* Draw module. Used mostly for SW TCL. */
-    struct gallivm_state *gallivm;
     struct draw_context* draw;
     /* Vertex buffer for SW TCL. */
     struct pipe_resource* vbo;
index 178ad63954ee698ba019f0cf61e5b3e5f4eb44df..37b8bc6440f655667fd3f74876d813c014b504ea 100644 (file)
 
 #include "draw/draw_context.h"
 
-#ifdef HAVE_LLVM
-#include "gallivm/lp_bld_init.h"
-#endif
-
 /* Return the identifier behind whom the brave coders responsible for this
  * amalgamation of code, sweat, and duct tape, routinely obscure their names.
  *
@@ -483,9 +479,5 @@ struct pipe_screen* r300_screen_create(struct r300_winsys_screen *rws)
 
     util_format_s3tc_init();
 
-#ifdef HAVE_LLVM
-    lp_build_init();
-#endif
-
     return &r300screen->screen;
 }