llvmpipe: remove dead code
authorKeith Whitwell <keithw@vmware.com>
Wed, 6 Jan 2010 17:00:26 +0000 (17:00 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 6 Jan 2010 17:00:26 +0000 (17:00 +0000)
src/gallium/drivers/llvmpipe/lp_clear.c
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/llvmpipe/lp_flush.c
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_derived.c

index 4bae44e2ea24b31456d1970c4c4aac612ae55e1c..3e8c4109251bf6a96dfba285eed17c5feb3f3d17 100644 (file)
@@ -36,7 +36,6 @@
 #include "lp_clear.h"
 #include "lp_context.h"
 #include "lp_setup.h"
-#include "lp_state.h"
 
 
 /**
index b796148457e0d01ddda494ae82f0799af1c547f2..194692045dc9504ffdbf49dd79722e72538d5bad 100644 (file)
@@ -88,7 +88,6 @@ struct llvmpipe_context {
    
    /** Vertex format */
    struct vertex_info vertex_info;
-   struct vertex_info vertex_info_vbuf;
 
    /** Which vertex shader output slot contains point size */
    int psize_slot;
index e6519cb216bdd81c55cda302c0affec144db3499..9405150c4f7ff0db0d26c9e8564ed04a1d13f854 100644 (file)
@@ -35,7 +35,6 @@
 #include "lp_flush.h"
 #include "lp_context.h"
 #include "lp_surface.h"
-#include "lp_state.h"
 #include "lp_winsys.h"
 #include "lp_setup.h"
 
index 24393c8e8914c430a730db250287ee3e72699dda..6772ff332ba48cb301170c29de3ffa87fcf7a554 100644 (file)
@@ -34,7 +34,6 @@
 #include "lp_scene_queue.h"
 #include "lp_debug.h"
 #include "lp_fence.h"
-#include "lp_state.h"
 #include "lp_rast.h"
 #include "lp_rast_priv.h"
 #include "lp_tile_soa.h"
index 64fe3600f5eff2c5325483667a6d0006527c1d84..6017dc553a6fe0ebdc675a944cee703c1f30f9c8 100644 (file)
@@ -215,11 +215,4 @@ void
 llvmpipe_unmap_texture_surfaces(struct llvmpipe_context *lp);
 
 
-struct vertex_info *
-llvmpipe_get_vertex_info(struct llvmpipe_context *llvmpipe);
-
-struct vertex_info *
-llvmpipe_get_vbuf_vertex_info(struct llvmpipe_context *llvmpipe);
-
-
 #endif
index ab827045ed68f954110918d1e2d2c58a6a0b8433..cc7b09fd4d15cb1502c1bdcb818ff60a589fb4a5 100644 (file)
  * (simple float[][4]) used by the 'draw' module into vertices for
  * rasterization.
  *
- * This function validates the vertex layout and returns a pointer to a
- * vertex_info object.
+ * This function validates the vertex layout.
  */
 static void
 compute_vertex_info(struct llvmpipe_context *llvmpipe)
 {
    const struct lp_fragment_shader *lpfs = llvmpipe->fs;
-   struct vertex_info *vinfo_vbuf = &llvmpipe->vertex_info_vbuf;
+   struct vertex_info *vinfo = &llvmpipe->vertex_info;
    const uint num = draw_num_vs_outputs(llvmpipe->draw);
    uint i;
 
-   /* Tell draw_vbuf to simply emit the whole post-xform vertex as-is.
+   /* Tell setup to tell the draw module to simply emit the whole
+    * post-xform vertex as-is.
     *
     * Not really sure if this is the best approach.
     */
-   vinfo_vbuf->num_attribs = 0;
+   vinfo->num_attribs = 0;
    for (i = 0; i < num; i++) {
-      draw_emit_vertex_attr(vinfo_vbuf, EMIT_4F, INTERP_PERSPECTIVE, i);
+      draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, i);
    }
-   draw_compute_vertex_size(vinfo_vbuf);
+   draw_compute_vertex_size(vinfo);
 
 
-   lp_setup_set_vertex_info(llvmpipe->setup, vinfo_vbuf);
+   lp_setup_set_vertex_info(llvmpipe->setup, vinfo);
 
 /*
    llvmpipe->psize_slot = draw_find_vs_output(llvmpipe->draw,