r300g: don't call u_trim_pipe_prim in r300_swtcl_draw_vbo
authorMarek Olšák <maraeo@gmail.com>
Sun, 23 Oct 2011 18:29:06 +0000 (20:29 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 23 Oct 2011 18:29:06 +0000 (20:29 +0200)
This was dead code anyway.

src/gallium/drivers/r300/r300_render.c

index dad6d2fbf5f35e940f371427aaf3e443fde0be59..eca7c291a1cdea475aa90a5b9c1f9beda04c8d46 100644 (file)
@@ -801,7 +801,6 @@ static void r300_swtcl_draw_vbo(struct pipe_context* pipe,
     struct r300_context* r300 = r300_context(pipe);
     struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS];
     struct pipe_transfer *ib_transfer = NULL;
-    unsigned count = info->count;
     int i;
     void *indices = NULL;
     boolean indexed = info->indexed && r300->index_buffer.buffer;
@@ -810,10 +809,6 @@ static void r300_swtcl_draw_vbo(struct pipe_context* pipe,
         return;
     }
 
-    if (!u_trim_pipe_prim(info->mode, &count)) {
-        return;
-    }
-
     r300_update_derived_state(r300);
 
     r300_reserve_cs_dwords(r300,