summaryrefslogtreecommitdiff
path: root/src/sna/sna_video.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-09 13:14:04 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-09 14:00:16 +0000
commit8fdbd01c94c0f6f56247feed8f225901ba39e18e (patch)
treebb6621689de186d528df9607c623b08cbb4e6e9e /src/sna/sna_video.h
parent436a78684507129ca1245e065ff68870eb27624b (diff)
sna/video: Use the normal bo cache for texture video streams
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.h')
-rw-r--r--src/sna/sna_video.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/sna/sna_video.h b/src/sna/sna_video.h
index ab8289b6..47ddab0f 100644
--- a/src/sna/sna_video.h
+++ b/src/sna/sna_video.h
@@ -117,15 +117,20 @@ sna_video_frame_init(struct sna *sna,
int id, short width, short height,
struct sna_video_frame *frame);
+struct kgem_bo *
+sna_video_buffer(struct sna *sna,
+ struct sna_video *video,
+ struct sna_video_frame *frame);
+
Bool
sna_video_copy_data(struct sna *sna,
struct sna_video *video,
struct sna_video_frame *frame,
const uint8_t *buf);
-void sna_video_frame_fini(struct sna *sna,
- struct sna_video *video,
- struct sna_video_frame *frame);
+void sna_video_buffer_fini(struct sna *sna,
+ struct sna_video *video);
+
void sna_video_free_buffers(struct sna *sna, struct sna_video *video);
#endif /* SNA_VIDEO_H */