From: Marek Olšák Date: Thu, 26 Apr 2012 10:10:06 +0000 (+0200) Subject: r300g: make r300_buffer_transfer_unmap a no-op X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=498e71c156c9292a30081ebd92f519f882ef7fab;p=mesa.git r300g: make r300_buffer_transfer_unmap a no-op It's a no-op already in the winsys. --- 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 =