summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2013-04-03 09:47:53 +0800
committerYakui Zhao <yakui.zhao@intel.com>2013-04-03 09:47:53 +0800
commit593b6fc1fb32797ac5b7d75cb19eb70d42921e85 (patch)
tree4efa0b06d67507a7556d6f407ca37add72c269f3 /src
parent40d6c94a0c02d794bcba6d14e83926a536da22bd (diff)
downloadvaapi-intel-driver-593b6fc1fb32797ac5b7d75cb19eb70d42921e85.tar.gz
vaapi-intel-driver-593b6fc1fb32797ac5b7d75cb19eb70d42921e85.tar.bz2
vaapi-intel-driver-593b6fc1fb32797ac5b7d75cb19eb70d42921e85.zip
Handle the pitch when using RGBX surface in VPP
Signed-off-by: Ung, Teng En <teng.en.ung@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/i965_post_processing.c1
1 files changed, 1 insertions, 0 deletions
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;