diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2012-10-31 16:47:53 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-10-31 22:04:07 +0800 |
commit | 99e38ab058437ff0f1de2e4d365a4a592e414a2e (patch) | |
tree | 53d06c5e2eca6eda3122b9d1b2f0e8ed5037a6e4 /src/i965_decoder.h | |
parent | 6480bb397b1d74d05c0533069a9e650ed8a67207 (diff) | |
download | libva-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.h | 39 |
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); |