Mesa (7.11): r300g: don't call u_trim_pipe_prim in r300_swtcl_draw_vbo
Marek Olšák
mareko at kemper.freedesktop.org
Wed Nov 2 21:30:24 UTC 2011
Module: Mesa
Branch: 7.11
Commit: d15ce8dd297001c2764c41be61a12a81d9cf441f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d15ce8dd297001c2764c41be61a12a81d9cf441f
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Oct 23 20:29:06 2011 +0200
r300g: don't call u_trim_pipe_prim in r300_swtcl_draw_vbo
This was dead code anyway.
(cherry picked from commit 21e3c585f7c59fa909f6bb485a99bad33119a186)
---
src/gallium/drivers/r300/r300_render.c | 5 -----
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 535bdaf..0d12d6d 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,
More information about the mesa-commit
mailing list