summaryrefslogtreecommitdiff
path: root/src/xvmc/xvmc_vld.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-03-10 16:51:10 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2010-05-16 19:59:29 +0100
commitb55d91b7c81c13fd6383efd938e6f12500881c7e (patch)
treeb89d19e81df23bb3cc00cb17ea00aa362aa3fd97 /src/xvmc/xvmc_vld.c
parent705c508da5d94d8ccebfa34d35a0f7887c530794 (diff)
libXvMC: unify DestroySurface
Surface bo's can be freed by the common code, then there's nothing driver specific left. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> (cherry picked from commit 16e5edde4d97e1818e0dbfbc165bd8199f697336) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'src/xvmc/xvmc_vld.c')
-rw-r--r--src/xvmc/xvmc_vld.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/xvmc/xvmc_vld.c b/src/xvmc/xvmc_vld.c
index 7942569a..f314a4f3 100644
--- a/src/xvmc/xvmc_vld.c
+++ b/src/xvmc/xvmc_vld.c
@@ -636,15 +636,6 @@ static Status create_surface(Display * display,
return Success;
}
-static Status destroy_surface(Display * display, XvMCSurface * surface)
-{
- struct intel_xvmc_surface *priv_surface = surface->privData;
- XSync(display, False);
- drm_intel_bo_unreference(priv_surface->bo);
- free(priv_surface);
- return Success;
-}
-
static Status load_qmatrix(Display * display, XvMCContext * context,
const XvMCQMatrix * qmx)
{
@@ -1244,7 +1235,6 @@ struct _intel_xvmc_driver xvmc_vld_driver = {
.create_context = create_context,
.destroy_context = destroy_context,
.create_surface = create_surface,
- .destroy_surface = destroy_surface,
.load_qmatrix = load_qmatrix,
.begin_surface = begin_surface,
.render_surface = render_surface,