summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_inlines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/util/u_inlines.h')
-rw-r--r--src/gallium/auxiliary/util/u_inlines.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
index 0cb3432c6e..ada31b8182 100644
--- a/src/gallium/auxiliary/util/u_inlines.h
+++ b/src/gallium/auxiliary/util/u_inlines.h
@@ -266,22 +266,22 @@ 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);
+ struct pipe_context *context = transf->pipe;
+ return context->transfer_map(context, transf);
}
static INLINE void
pipe_transfer_unmap( struct pipe_transfer *transf )
{
- struct pipe_screen *screen = transf->texture->screen;
- screen->transfer_unmap(screen, transf);
+ struct pipe_context *context = transf->pipe;
+ context->transfer_unmap(context, transf);
}
static INLINE void
pipe_transfer_destroy( struct pipe_transfer *transf )
{
- struct pipe_screen *screen = transf->texture->screen;
- screen->tex_transfer_destroy(transf);
+ struct pipe_context *context = transf->pipe;
+ context->tex_transfer_destroy(transf);
}
static INLINE unsigned