From 498e71c156c9292a30081ebd92f519f882ef7fab Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 26 Apr 2012 12:10:06 +0200 Subject: r300g: make r300_buffer_transfer_unmap a no-op It's a no-op already in the winsys. --- src/gallium/drivers/r300/r300_screen_buffer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c index a3b09500d4b..d05c9149287 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.c +++ b/src/gallium/drivers/r300/r300_screen_buffer.c @@ -131,13 +131,7 @@ r300_buffer_transfer_map( struct pipe_context *pipe, static void r300_buffer_transfer_unmap( struct pipe_context *pipe, struct pipe_transfer *transfer ) { - struct r300_screen *r300screen = r300_screen(pipe->screen); - struct radeon_winsys *rws = r300screen->rws; - struct r300_resource *rbuf = r300_resource(transfer->resource); - - if (rbuf->cs_buf) { - rws->buffer_unmap(rbuf->cs_buf); - } + /* no-op */ } static const struct u_resource_vtbl r300_buffer_vtbl = -- cgit v1.2.3