summaryrefslogtreecommitdiff
path: root/src/xvmc/i915_xvmc.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-03-10 15:27:02 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2010-04-08 11:22:23 +0200
commitc9aaaed829731cda22d057d6ac6424c587770973 (patch)
treed222914c75ea6bf699d73c59dfa779411404dd67 /src/xvmc/i915_xvmc.c
parent4edff6c972311df2370a8323e346eeabd49ced35 (diff)
downloadxf86-video-intel-c9aaaed829731cda22d057d6ac6424c587770973.tar.gz
xf86-video-intel-c9aaaed829731cda22d057d6ac6424c587770973.tar.bz2
xf86-video-intel-c9aaaed829731cda22d057d6ac6424c587770973.zip
libXvMC: unify PutSurface
Now that the drm bo is in the common structure, do the PutImage handling in common code, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'src/xvmc/i915_xvmc.c')
-rw-r--r--src/xvmc/i915_xvmc.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c
index 2b96cf47e..fdf8cb57f 100644
--- a/src/xvmc/i915_xvmc.c
+++ b/src/xvmc/i915_xvmc.c
@@ -1297,32 +1297,6 @@ static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context,
return 0;
}
-static int i915_xvmc_mc_put_surface(Display * display, XvMCSurface * surface,
- Drawable draw, short srcx, short srcy,
- unsigned short srcw, unsigned short srch,
- short destx, short desty,
- unsigned short destw, unsigned short desth,
- int flags, uint32_t *gem_handle)
-{
- i915XvMCContext *pI915XvMC;
- i915XvMCSurface *pI915Surface;
- i915XvMCSubpicture *pI915SubPic;
-
- if (!(pI915Surface = surface->privData))
- return XvMCBadSurface;
-
- if (!(pI915XvMC = pI915Surface->privContext))
- return XvMCBadSurface;
-
- PPTHREAD_MUTEX_LOCK();
-
- drm_intel_bo_flink(pI915Surface->comm.bo, gem_handle);
-
- PPTHREAD_MUTEX_UNLOCK();
-
- return 0;
-}
-
static int i915_xvmc_mc_get_surface_status(Display * display,
XvMCSurface * surface, int *stat)
{
@@ -1352,6 +1326,5 @@ struct _intel_xvmc_driver i915_xvmc_mc_driver = {
.create_surface = i915_xvmc_mc_create_surface,
.destroy_surface = i915_xvmc_mc_destroy_surface,
.render_surface = i915_xvmc_mc_render_surface,
- .put_surface = i915_xvmc_mc_put_surface,
.get_surface_status = i915_xvmc_mc_get_surface_status,
};