summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-11-13 15:48:25 +0100
committerMarek Olšák <[email protected]>2012-11-13 15:53:17 +0100
commite3813ecfa3e750b0123ab63ea857b5ed6edb8698 (patch)
treeb107506b730e53ad83c5d1440e8cfd75754ea659 /src/gallium
parent7a8affb6a1c1cc4d6de10717b1c3c8d64a8e41f2 (diff)
r300g: don't call buffer_unmap in draw functions
It's been a no-op anyway.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_render.c11
1 files changed, 0 insertions, 11 deletions
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,