summaryrefslogtreecommitdiff
path: root/src/i965_decoder.h
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2012-10-31 16:47:53 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-10-31 22:04:07 +0800
commit99e38ab058437ff0f1de2e4d365a4a592e414a2e (patch)
tree53d06c5e2eca6eda3122b9d1b2f0e8ed5037a6e4 /src/i965_decoder.h
parent6480bb397b1d74d05c0533069a9e650ed8a67207 (diff)
downloadlibva-intel-driver-99e38ab058437ff0f1de2e4d365a4a592e414a2e.tar.gz
Unify the XXX_free_avc_surface for media encoding/decoding
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/i965_decoder.h')
-rw-r--r--src/i965_decoder.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/i965_decoder.h b/src/i965_decoder.h
index 5de8085c..f36df44d 100644
--- a/src/i965_decoder.h
+++ b/src/i965_decoder.h
@@ -45,45 +45,6 @@ struct gen_buffer {
int valid;
};
-#if HAVE_GEN_AVC_SURFACE
-
-static pthread_mutex_t free_avc_surface_lock = PTHREAD_MUTEX_INITIALIZER;
-
-typedef struct gen_avc_surface GenAvcSurface;
-struct gen_avc_surface
-{
- dri_bo *dmv_top;
- dri_bo *dmv_bottom;
- int dmv_bottom_flag;
-};
-
-static void
-gen_free_avc_surface(void **data)
-{
- GenAvcSurface *avc_surface;
-
- pthread_mutex_lock(&free_avc_surface_lock);
-
- avc_surface = *data;
-
- if (!avc_surface) {
- pthread_mutex_unlock(&free_avc_surface_lock);
- return;
- }
-
-
- dri_bo_unreference(avc_surface->dmv_top);
- avc_surface->dmv_top = NULL;
- dri_bo_unreference(avc_surface->dmv_bottom);
- avc_surface->dmv_bottom = NULL;
-
- free(avc_surface);
- *data = NULL;
-
- pthread_mutex_unlock(&free_avc_surface_lock);
-}
-
-#endif
struct hw_context *
gen75_dec_hw_context_init(VADriverContextP ctx, struct object_config *obj_config);