From e3813ecfa3e750b0123ab63ea857b5ed6edb8698 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 13 Nov 2012 15:48:25 +0100 Subject: r300g: don't call buffer_unmap in draw functions It's been a no-op anyway. --- src/gallium/drivers/r300/r300_render.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 46d7ea1748b..4a6a6c4d025 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -395,16 +395,6 @@ static void r300_draw_arrays_immediate(struct r300_context *r300, } } END_CS; - - /* Unmap buffers. */ - for (i = 0; i < vertex_element_count; i++) { - vbi = r300->velems->velem[i].vertex_buffer_index; - - if (map[vbi]) { - r300->rws->buffer_unmap(r300_resource(r300->vertex_buffer[vbi].buffer)->cs_buf); - map[vbi] = NULL; - } - } } static void r300_emit_draw_arrays(struct r300_context *r300, @@ -630,7 +620,6 @@ static void r300_draw_elements(struct r300_context *r300, r300_upload_index_buffer(r300, &indexBuffer, indexSize, &start, count, (uint8_t*)ptr); } - r300->rws->buffer_unmap(r300_resource(orgIndexBuffer)->cs_buf); } else { if (r300->index_buffer.user_buffer) r300_upload_index_buffer(r300, &indexBuffer, indexSize, -- cgit v1.2.3