From 593b6fc1fb32797ac5b7d75cb19eb70d42921e85 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Wed, 3 Apr 2013 09:47:53 +0800 Subject: Handle the pitch when using RGBX surface in VPP Signed-off-by: Ung, Teng En Signed-off-by: Zhao Yakui --- src/i965_post_processing.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 2907cf7..4e678d3 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -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; -- cgit v1.2.3