summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-06-05 17:53:48 +0200
committerChristian König <[email protected]>2011-06-05 17:53:48 +0200
commitc4a168819dee9a2f9b4e7c7ab8d79bb50876d85d (patch)
treef1181b9834b473300858c3a5de5bbe01d66d029a /src/gallium/state_trackers
parent7e1fbb360332ecac2789e28a0f3d303306f687b1 (diff)
[g3dvl] rename map/unmap to begin/end frame
mapping and unmapping of buffers is just an implementation detail. begining and ending an frame is much more descriptive
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;