diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 4ace7c4..24baf75 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -1769,6 +1769,8 @@ 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;