draw: Remove draw_pt_fetch_prepare call from llvm middle end.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 3 May 2010 11:15:32 +0000 (12:15 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 3 May 2010 11:15:32 +0000 (12:15 +0100)
Unneeded since we code generate the vertex fecthes.

src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c

index 35913a599515cf23642df3c6563888f639038817..6d00b0fbd44d60c9f225641e6d1d82dd096c00f2 100644 (file)
@@ -66,7 +66,6 @@ llvm_middle_end_prepare( struct draw_pt_middle_end *middle,
    struct llvm_middle_end *fpme = (struct llvm_middle_end *)middle;
    struct draw_context *draw = fpme->draw;
    struct draw_vertex_shader *vs = draw->vs.vertex_shader;
-   struct draw_geometry_shader *gs = draw->gs.geometry_shader;
    struct draw_llvm_variant_key key;
    struct draw_llvm_variant *variant = NULL;
    unsigned i;
@@ -97,17 +96,6 @@ llvm_middle_end_prepare( struct draw_pt_middle_end *middle,
    fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float);
 
 
-
-   draw_pt_fetch_prepare( fpme->fetch,
-                          vs->info.num_inputs,
-                          fpme->vertex_size,
-                          instance_id_index );
-   if (opt & PT_SHADE) {
-      vs->prepare(vs, draw);
-      draw_geometry_shader_prepare(gs, draw);
-   }
-
-
    /* XXX: it's not really gl rasterization rules we care about here,
     * but gl vs dx9 clip spaces.
     */