From: José Fonseca Date: Mon, 1 Jun 2009 16:20:29 +0000 (-0700) Subject: gallium: Add pipe_transfer_map/unmap inlines. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c51bd94a14c133d44115d52e4773cb7b313c3ce7;p=mesa.git gallium: Add pipe_transfer_map/unmap inlines. --- diff --git a/src/gallium/include/pipe/p_inlines.h b/src/gallium/include/pipe/p_inlines.h index a5c1e8270a3..4f0a7a4ef63 100644 --- a/src/gallium/include/pipe/p_inlines.h +++ b/src/gallium/include/pipe/p_inlines.h @@ -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 }