diff options
author | Zhong Li <zhong.li@intel.com> | 2013-06-08 14:37:24 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-12-19 10:24:37 +0800 |
commit | 99bc27dad3283575280e0a79bf7a6b5b5da15309 (patch) | |
tree | a59891b456b2555d13a5c93f3bd38917a0f0cde6 | |
parent | 950231faaf99d438f970975ba2c3977bcca927cc (diff) | |
download | libva-intel-driver-99bc27dad3283575280e0a79bf7a6b5b5da15309.tar.gz libva-intel-driver-99bc27dad3283575280e0a79bf7a6b5b5da15309.tar.bz2 libva-intel-driver-99bc27dad3283575280e0a79bf7a6b5b5da15309.zip |
Enable loop-deblock of bdw vp8 decoder
When deblock is enable, post-deblocking bo should be used as output
buffer.
Signed-off-by: Zhong Li <zhong.li@intel.com>
-rw-r--r-- | src/gen8_mfd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c index 4997c20..c60e333 100644 --- a/src/gen8_mfd.c +++ b/src/gen8_mfd.c @@ -2732,13 +2732,14 @@ gen8_mfd_vp8_decode_init(VADriverContextP ctx, i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('N','V','1','2'), SUBSAMPLE_YUV420); dri_bo_unreference(gen7_mfd_context->post_deblocking_output.bo); - gen7_mfd_context->post_deblocking_output.bo = NULL; - gen7_mfd_context->post_deblocking_output.valid = 0; + gen7_mfd_context->post_deblocking_output.bo = obj_surface->bo; + dri_bo_reference(gen7_mfd_context->post_deblocking_output.bo); + gen7_mfd_context->post_deblocking_output.valid = !pic_param->pic_fields.bits.loop_filter_disable; dri_bo_unreference(gen7_mfd_context->pre_deblocking_output.bo); gen7_mfd_context->pre_deblocking_output.bo = obj_surface->bo; dri_bo_reference(gen7_mfd_context->pre_deblocking_output.bo); - gen7_mfd_context->pre_deblocking_output.valid = 1; + gen7_mfd_context->pre_deblocking_output.valid = pic_param->pic_fields.bits.loop_filter_disable; /* The same as AVC */ dri_bo_unreference(gen7_mfd_context->intra_row_store_scratch_buffer.bo); |