summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-10-23 20:29:06 +0200
committerMarek Olšák <maraeo@gmail.com>2011-11-02 22:27:05 +0100
commitd15ce8dd297001c2764c41be61a12a81d9cf441f (patch)
tree915d16d4c6bcee67183b2b493beb761b6c2da28d
parent449b301eecb884b38a5388518919b684e03433ed (diff)
downloadmesa-d15ce8dd297001c2764c41be61a12a81d9cf441f.tar.gz
r300g: don't call u_trim_pipe_prim in r300_swtcl_draw_vbo
This was dead code anyway. (cherry picked from commit 21e3c585f7c59fa909f6bb485a99bad33119a186)
-rw-r--r--src/gallium/drivers/r300/r300_render.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 535bdaf313f..0d12d6d2537 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -825,7 +825,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;
@@ -834,10 +833,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,