diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-06-01 09:20:29 -0700 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-09-14 20:12:01 +0100 |
commit | c51bd94a14c133d44115d52e4773cb7b313c3ce7 (patch) | |
tree | 45f12d7287132f79f38fe92888339d89505e86fd /src/gallium/include | |
parent | 88b88bba68af2f5d3243ebc77f32e47aa747d5f7 (diff) |
gallium: Add pipe_transfer_map/unmap inlines.
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_inlines.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_inlines.h b/src/gallium/include/pipe/p_inlines.h index a5c1e8270a..4f0a7a4ef6 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 } |