gallium: Add pipe_transfer_map/unmap inlines.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Jun 2009 16:20:29 +0000 (09:20 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Sep 2009 19:12:01 +0000 (20:12 +0100)
src/gallium/include/pipe/p_inlines.h

index a5c1e8270a3aeb1177a56b4eff4e09ab5b1cd875..4f0a7a4ef6366e0262a6f2d8b5f49c87f0b660f2 100644 (file)
@@ -155,6 +155,19 @@ pipe_buffer_read(struct pipe_screen *screen,
    }
 }
 
+static INLINE void *
+pipe_transfer_map( struct pipe_transfer *transf )
+{
+   struct pipe_screen *screen = transf->texture->screen;
+   return screen->transfer_map(screen, transf);
+}
+
+static INLINE void
+pipe_transfer_unmap( struct pipe_transfer *transf )
+{
+   struct pipe_screen *screen = transf->texture->screen;
+   screen->transfer_unmap(screen, transf);
+}
 
 #ifdef __cplusplus
 }