llvmpipe: remove dead code
authorKeith Whitwell <keithw@vmware.com>
Fri, 9 Oct 2009 11:26:49 +0000 (12:26 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 9 Oct 2009 11:26:49 +0000 (12:26 +0100)
src/gallium/drivers/llvmpipe/lp_flush.c
src/gallium/drivers/llvmpipe/lp_jit.c
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_state_surface.c

index d0dd41f09c14d85e1433e7f49661109bf4acde76..f7a1d897019810dcf6206139a654690c76e909a8 100644 (file)
@@ -37,6 +37,7 @@
 #include "lp_surface.h"
 #include "lp_state.h"
 #include "lp_winsys.h"
+#include "lp_setup.h"
 
 
 void
index a03eb874acb7c560b02e2414f509c6ea2947151d..fb6ec9bb37a8db32d48d62302a48a40176de42dc 100644 (file)
@@ -108,24 +108,6 @@ lp_jit_init_globals(struct llvmpipe_screen *screen)
       screen->context_ptr_type = LLVMPointerType(context_type, 0);
    }
 
-   /* fetch_texel
-    */
-   {
-      LLVMTypeRef ret_type;
-      LLVMTypeRef arg_types[3];
-      LLVMValueRef fetch_texel;
-
-      ret_type = LLVMVoidType();
-      arg_types[0] = LLVMPointerType(LLVMInt8Type(), 0);  /* samplers */
-      arg_types[1] = LLVMInt32Type();                     /* unit */
-      arg_types[2] = LLVMPointerType(LLVMVectorType(LLVMFloatType(), 4), 0); /* store */
-
-      fetch_texel = lp_declare_intrinsic(screen->module, "fetch_texel",
-                                         ret_type, arg_types, Elements(arg_types));
-
-      LLVMAddGlobalMapping(screen->engine, fetch_texel, lp_fetch_texel_soa);
-   }
-
 #ifdef DEBUG
    LLVMDumpModule(screen->module);
 #endif
index 207dfbfde10db04a7f8ca45611adf6aa9e744a72..7eccb5da85964ac820675177729ec544df731d5d 100644 (file)
@@ -118,10 +118,6 @@ typedef void
                     void *color,
                     void *depth);
 
-void PIPE_CDECL
-lp_fetch_texel_soa( struct tgsi_sampler **samplers,
-                    uint32_t unit,
-                    float *store );
 
 
 void
index bb1396c3ab88487404b404ce624d75c2e5019628..909ca9f11703306662c3b63587846efca6319dd5 100644 (file)
@@ -31,6 +31,7 @@
 #include "lp_context.h"
 #include "lp_state.h"
 #include "lp_surface.h"
+#include "lp_setup.h"
 
 #include "draw/draw_context.h"
 
@@ -82,7 +83,10 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe,
    }
 
    if (dirty) {
-      lp_setup_set_framebuffer( lp->setup, fb );
+      lp_setup_bind_framebuffer( lp->setup,
+                                 fb->cbufs[0],
+                                 fb->zsbuf );
+
       lp->dirty |= LP_NEW_FRAMEBUFFER;
    }
 }