Handle the pitch when using RGBX surface in VPP for BDW
authorZhao Yakui <yakui.zhao@intel.com>
Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:17:02 +0000 (10:17 +0800)
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_post_processing.c

index c329600..7704f2d 100755 (executable)
@@ -2393,6 +2393,7 @@ gen8_pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_proc
         } 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;