diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-03 16:13:52 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-03 16:13:52 +0800 |
commit | 96955003557686469c7ae9f7d42620d2851e6fad (patch) | |
tree | b736f17c91fba1d88877762245656a491ae6f954 /src/xvmc/i915_xvmc.c | |
parent | bd137a19dc29dd466eac030e040f729ed0807e3f (diff) |
xvmc: remove unused dri drawable
Diffstat (limited to 'src/xvmc/i915_xvmc.c')
-rw-r--r-- | src/xvmc/i915_xvmc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 20b2e613..f2d8ded9 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -1608,9 +1608,6 @@ static void i915_release_resource(Display *display, XvMCContext *context) pI915XvMC->ref--; i915_xvmc_unmap_buffers(pI915XvMC); - driDestroyHashContents(pI915XvMC->drawHash); - drmHashDestroy(pI915XvMC->drawHash); - free(pI915XvMC); context->privData = NULL; } @@ -1683,13 +1680,6 @@ static Status i915_xvmc_mc_create_context(Display *display, XvMCContext *context pSAREA = (drm_sarea_t *)xvmc_driver->sarea_address; pI915XvMC->sarea = (drmI830Sarea*)((char*)pSAREA + pI915XvMC->sarea_priv_offset); - if (NULL == (pI915XvMC->drawHash = drmHashCreate())) { - XVMC_ERR("Could not allocate drawable hash table."); - free(pI915XvMC); - context->privData = NULL; - return BadAlloc; - } - if (i915_xvmc_map_buffers(pI915XvMC)) { i915_xvmc_unmap_buffers(pI915XvMC); free(pI915XvMC); |