Fix the wrong pitch of surface for Video post-processing on BDW
authorZhao Yakui <yakui.zhao@intel.com>
Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:30:07 +0000 (10:30 +0800)
Now the object surface already contains the pitch after the object surface
structure is reworked in the commit f886f24eaaacba9544fa5f6405b7382c686f3a1f.
So it is unnecessary to calculate the pitch based on the width.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_post_processing.c

index 4bd9df9..28b5817 100755 (executable)
@@ -2396,11 +2396,9 @@ gen8_pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_proc
             else
                 width[0] = obj_surface->orig_width;     /* surface foramt is YCBCR, width is specified in units of pixels */
 
-            pitch[0] = obj_surface->width * 2;
         } else if (rgbx_format) {
            if (is_target)
                 width[0] = obj_surface->orig_width * 4; /* surface format is R8, so quad the width */
-            pitch[0] = obj_surface->width * 4;
        }
 
         width[1] = obj_surface->cb_cr_width;