From 593eaafc319d3d71c5c4b28915558e9e366c240d Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Fri, 7 Dec 2012 13:54:37 +0800 Subject: [PATCH] MPEG-2 encoding: Use pre deblocking output for reconstructed picture. This avoids OLDB enabling for MPEG-2 Signed-off-by: Xiang, Haihao --- src/gen75_mfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c index 38e17e9..b2130db 100644 --- a/src/gen75_mfc.c +++ b/src/gen75_mfc.c @@ -2399,8 +2399,8 @@ intel_mfc_mpeg2_prepare(VADriverContextP ctx, obj_surface = SURFACE(pic_param->reconstructed_picture); assert(obj_surface); i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('N','V','1','2'), SUBSAMPLE_YUV420); - mfc_context->post_deblocking_output.bo = obj_surface->bo; - dri_bo_reference(mfc_context->post_deblocking_output.bo); + mfc_context->pre_deblocking_output.bo = obj_surface->bo; + dri_bo_reference(mfc_context->pre_deblocking_output.bo); mfc_context->surface_state.width = obj_surface->orig_width; mfc_context->surface_state.height = obj_surface->orig_height; mfc_context->surface_state.w_pitch = obj_surface->width; -- 2.11.0