From c51bd94a14c133d44115d52e4773cb7b313c3ce7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 1 Jun 2009 09:20:29 -0700 Subject: [PATCH] gallium: Add pipe_transfer_map/unmap inlines. --- src/gallium/include/pipe/p_inlines.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 } -- 2.30.2