Handle the pitch when using RGBX surface in VPP
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 3 Apr 2013 01:47:53 +0000 (09:47 +0800)
committerYakui Zhao <yakui.zhao@intel.com>
Wed, 3 Apr 2013 01:47:53 +0000 (09:47 +0800)
Signed-off-by: Ung, Teng En <teng.en.ung@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_post_processing.c

index 2907cf7..4e678d3 100755 (executable)
@@ -1766,6 +1766,7 @@ gen7_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;