From 7dfc815c89ad595e8985e671e5bbb602fe74a2b9 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Thu, 23 May 2013 10:22:09 +0800 Subject: [PATCH] Handle the pitch when using RGBX surface in VPP for BDW Signed-off-by: Zhao Yakui --- src/i965_post_processing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index c329600..7704f2d 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -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; -- 2.7.4