diff options
author | Younes Manton <[email protected]> | 2010-06-13 17:36:34 -0400 |
---|---|---|
committer | Younes Manton <[email protected]> | 2010-06-13 17:36:34 -0400 |
commit | 4b2fcb2bcb7a93cf3dc8cd164f4e87b5c538f7f6 (patch) | |
tree | 5a3a2b45e840364f916a920561f20bddc3c403b6 /src/gallium/include | |
parent | 511cb3fbf9352540dd667aa6b3bb7e24c93a4ce6 (diff) |
vl: Add transfer funcs to pipe_video_context and softpipe.
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_video_context.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_video_context.h b/src/gallium/include/pipe/p_video_context.h index d90b667de6c..294dc464c36 100644 --- a/src/gallium/include/pipe/p_video_context.h +++ b/src/gallium/include/pipe/p_video_context.h @@ -114,6 +114,34 @@ struct pipe_video_context unsigned srcx, unsigned srcy, unsigned width, unsigned height); + struct pipe_transfer *(*get_transfer)(struct pipe_video_context *vpipe, + struct pipe_resource *resource, + struct pipe_subresource subresource, + unsigned usage, /* a combination of PIPE_TRANSFER_x */ + const struct pipe_box *box); + + void (*transfer_destroy)(struct pipe_video_context *vpipe, + struct pipe_transfer *transfer); + + void* (*transfer_map)(struct pipe_video_context *vpipe, + struct pipe_transfer *transfer); + + void (*transfer_flush_region)(struct pipe_video_context *vpipe, + struct pipe_transfer *transfer, + const struct pipe_box *box); + + void (*transfer_unmap)(struct pipe_video_context *vpipe, + struct pipe_transfer *transfer); + + void (*transfer_inline_write)(struct pipe_video_context *vpipe, + struct pipe_resource *resource, + struct pipe_subresource subresource, + unsigned usage, /* a combination of PIPE_TRANSFER_x */ + const struct pipe_box *box, + const void *data, + unsigned stride, + unsigned slice_stride); + /*@}*/ /** |