summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/vdpau/decode.c4
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/surface.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c
index de6f96babcb..5c6d0467924 100644
--- a/src/gallium/state_trackers/vdpau/decode.c
+++ b/src/gallium/state_trackers/vdpau/decode.c
@@ -200,13 +200,13 @@ vlVdpDecoderRenderMpeg2(struct pipe_video_decoder *decoder,
picture.intra_quantizer_matrix = picture_info->intra_quantizer_matrix;
picture.non_intra_quantizer_matrix = picture_info->non_intra_quantizer_matrix;
- buffer->map(buffer);
+ buffer->begin_frame(buffer);
for (i = 0; i < bitstream_buffer_count; ++i)
buffer->decode_bitstream(buffer, bitstream_buffers[i].bitstream_bytes,
bitstream_buffers[i].bitstream, &picture, num_ycbcr_blocks);
- buffer->unmap(buffer);
+ buffer->end_frame(buffer);
decoder->flush_buffer(buffer, num_ycbcr_blocks, ref_frames, target);
diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c
index da41a182164..4d6c58ebc76 100644
--- a/src/gallium/state_trackers/xorg/xvmc/surface.c
+++ b/src/gallium/state_trackers/xorg/xvmc/surface.c
@@ -277,7 +277,7 @@ unmap_and_flush_surface(XvMCSurfacePrivate *surface)
}
if (surface->mapped) {
- surface->decode_buffer->unmap(surface->decode_buffer);
+ surface->decode_buffer->end_frame(surface->decode_buffer);
for (i = 0; i < 3; ++i)
num_ycbcr_blocks[i] = surface->ycbcr[i].num_blocks_added;
context_priv->decoder->flush_buffer(surface->decode_buffer,
@@ -415,7 +415,7 @@ Status XvMCRenderSurface(Display *dpy, XvMCContext *context, unsigned int pictur
}
if (!target_surface_priv->mapped) {
- t_buffer->map(t_buffer);
+ t_buffer->begin_frame(t_buffer);
for (i = 0; i < 3; ++i) {
target_surface_priv->ycbcr[i].num_blocks_added = 0;