summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-01-14 08:25:46 -0800
committerCorbin Simpson <[email protected]>2010-01-14 09:01:37 -0800
commit1bc77e9931a248b74e0ef6b6aa2f4c5b2d1a2ca3 (patch)
tree7d660616ac234beb8a9f0383a56844286a5c1a75 /src/gallium/drivers/r300
parent60628c65c902f68c600b3d79c06e928aa3286285 (diff)
r300g: Cleanup from last few commits.
Strangely enough, the code solidified pretty quickly.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_render.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 528741ab7c0..710d850163f 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -262,10 +262,6 @@ static struct pipe_buffer* r300_translate_elts(struct r300_context* r300,
(void)u_index_translator(~0, *mode, *size, *count, PV_LAST, PV_LAST,
&out_prim, &out_index_size, &out_nr, &out_translate);
- debug_printf("r300: old mode %d, new mode %d\n", *mode, out_prim);
- debug_printf("r300: old count %d, new count %d\n", *count, out_nr);
- debug_printf("r300: old size %d, new size %d\n", *size, out_index_size);
-
new_elts = screen->buffer_create(screen, 32,
PIPE_BUFFER_USAGE_INDEX |
PIPE_BUFFER_USAGE_CPU_WRITE |
@@ -298,6 +294,7 @@ void r300_draw_range_elements(struct pipe_context* pipe,
unsigned count)
{
struct r300_context* r300 = r300_context(pipe);
+ struct pipe_buffer* orgIndexBuffer = indexBuffer;
if (!u_trim_pipe_prim(mode, &count)) {
return;
@@ -316,7 +313,6 @@ void r300_draw_range_elements(struct pipe_context* pipe,
return;
}
- struct pipe_buffer* orgIndexBuffer = indexBuffer;
if (indexSize == 1) {
indexBuffer = r300_translate_elts(r300, indexBuffer,
&indexSize, &mode, &count);