r300g: make r300_buffer_transfer_unmap a no-op
authorMarek Olšák <maraeo@gmail.com>
Thu, 26 Apr 2012 10:10:06 +0000 (12:10 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 29 Apr 2012 12:48:45 +0000 (14:48 +0200)
It's a no-op already in the winsys.

src/gallium/drivers/r300/r300_screen_buffer.c

index a3b09500d4bc46c2e1519ebdbbe1c36a01b3c745..d05c91492878c7c1618a89e9440570aba1454a95 100644 (file)
@@ -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 =