diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-11-16 15:49:10 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-11-16 15:49:10 +0800 |
commit | a03a758db0df615fbb44dae1ab6910bfeaeb54f9 (patch) | |
tree | 2876d339bcf5b121b0114dd5551ec4bec3cad7ff /src/xvmc/i915_xvmc.c | |
parent | 7bfbcb4dc7806ae7543f230373e67f35ba30668d (diff) |
xvmc: move some i915 context destroy code to generic function
Diffstat (limited to 'src/xvmc/i915_xvmc.c')
-rw-r--r-- | src/xvmc/i915_xvmc.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 404edc0b..53dfbdf7 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -1612,23 +1612,10 @@ static void i915_release_resource(Display *display, XvMCContext *context) driDestroyHashContents(pI915XvMC->drawHash); drmHashDestroy(pI915XvMC->drawHash); - pthread_mutex_destroy(&xvmc_driver->ctxmutex); - XLockDisplay(display); uniDRIDestroyContext(display, screen, pI915XvMC->id); XUnlockDisplay(display); - drmUnmap(xvmc_driver->sarea_address, xvmc_driver->sarea_size); - - if (xvmc_driver->fd >= 0) - drmClose(xvmc_driver->fd); - xvmc_driver->fd = -1; - - XLockDisplay(display); - uniDRICloseConnection(display, screen); - _xvmc_destroy_context(display, context); - XUnlockDisplay(display); - free(pI915XvMC); context->privData = NULL; } |