summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-03-24 20:33:32 +0100
committerChristian König <[email protected]>2011-03-24 20:33:32 +0100
commit884cb79edfefb1133229a002f41b4d370d717a7e (patch)
tree9071369ece79fa182d72e027d02b1acc419a6546 /src/gallium/include/pipe
parentf65cdb9ea5652a9b64f4102b046c373b80871577 (diff)
[g3dvl] make mapping and flushing of buffers a public interface
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_video_context.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/include/pipe/p_video_context.h b/src/gallium/include/pipe/p_video_context.h
index 08e3c7e340b..aa903ddc125 100644
--- a/src/gallium/include/pipe/p_video_context.h
+++ b/src/gallium/include/pipe/p_video_context.h
@@ -176,13 +176,17 @@ struct pipe_video_buffer
void (*destroy)(struct pipe_video_buffer *buffer);
+ void (*map)(struct pipe_video_buffer *buffer);
+
void (*add_macroblocks)(struct pipe_video_buffer *buffer,
- struct pipe_video_buffer *past,
- struct pipe_video_buffer *future,
unsigned num_macroblocks,
- struct pipe_macroblock *macroblocks,
- struct pipe_fence_handle **fence);
+ struct pipe_macroblock *macroblocks);
+
+ void (*unmap)(struct pipe_video_buffer *buffer);
+ void (*flush)(struct pipe_video_buffer *buffer,
+ struct pipe_video_buffer *ref_frames[2],
+ struct pipe_fence_handle **fence);
};