summaryrefslogtreecommitdiff
path: root/src/gen6_mfd.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2011-09-07 16:18:19 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-02-07 08:44:44 +0800
commitfb15cc581511f942c8e23a4d6300b8b36848f0f5 (patch)
tree0f270ad0c32867fae06e56e83a60516b11120e15 /src/gen6_mfd.c
parent452a8a5d0db34e3cea1a69cc30efbf3c46b02a9f (diff)
downloadlibva-intel-driver-fb15cc581511f942c8e23a4d6300b8b36848f0f5.tar.gz
libva-intel-driver-fb15cc581511f942c8e23a4d6300b8b36848f0f5.tar.bz2
libva-intel-driver-fb15cc581511f942c8e23a4d6300b8b36848f0f5.zip
i965_drv_video: support JPEG decoding on Ivybridge
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/gen6_mfd.c')
-rw-r--r--src/gen6_mfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen6_mfd.c b/src/gen6_mfd.c
index dd8fda1..1dec16d 100644
--- a/src/gen6_mfd.c
+++ b/src/gen6_mfd.c
@@ -975,8 +975,8 @@ gen6_mfd_avc_decode_init(VADriverContextP ctx,
assert(obj_surface);
obj_surface->flags &= ~SURFACE_REF_DIS_MASK;
obj_surface->flags |= (pic_param->pic_fields.bits.reference_pic_flag ? SURFACE_REFERENCED : 0);
- gen6_mfd_init_avc_surface(ctx, pic_param, obj_surface);
i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('N','V','1','2'));
+ gen6_mfd_init_avc_surface(ctx, pic_param, obj_surface);
dri_bo_unreference(gen6_mfd_context->post_deblocking_output.bo);
gen6_mfd_context->post_deblocking_output.bo = obj_surface->bo;
@@ -1445,8 +1445,8 @@ gen6_mfd_vc1_decode_init(VADriverContextP ctx,
/* Current decoded picture */
obj_surface = SURFACE(decode_state->current_render_target);
assert(obj_surface);
- gen6_mfd_init_vc1_surface(ctx, pic_param, obj_surface);
i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('N','V','1','2'));
+ gen6_mfd_init_vc1_surface(ctx, pic_param, obj_surface);
dri_bo_unreference(gen6_mfd_context->post_deblocking_output.bo);
gen6_mfd_context->post_deblocking_output.bo = obj_surface->bo;