summaryrefslogtreecommitdiff
path: root/src/i965_post_processing.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2013-05-23 10:22:09 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-02-27 10:17:02 +0800
commit7dfc815c89ad595e8985e671e5bbb602fe74a2b9 (patch)
tree411e9fb6f64d3f2a565495f4bc284ac0eb0b14e6 /src/i965_post_processing.c
parent821b3128a1670be45a7c62f91f20a6cdf45a9795 (diff)
downloadlibva-intel-driver-7dfc815c89ad595e8985e671e5bbb602fe74a2b9.tar.gz
libva-intel-driver-7dfc815c89ad595e8985e671e5bbb602fe74a2b9.tar.bz2
libva-intel-driver-7dfc815c89ad595e8985e671e5bbb602fe74a2b9.zip
Handle the pitch when using RGBX surface in VPP for BDW
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/i965_post_processing.c')
-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 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;