summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg
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/xorg
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/xorg')
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/surface.c4
1 files changed, 2 insertions, 2 deletions
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;