diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2013-12-27 15:05:44 +0800 |
---|---|---|
committer | Yakui Zhao <yakui.zhao@intel.com> | 2013-12-27 15:05:44 +0800 |
commit | 81aa858505acf4c1e096ed02e806340ab333500c (patch) | |
tree | 6a2aed724ed7ae302fe10c90154c840be5719b7b | |
parent | 78aa2be992006fda4e99a7179a42eafa39eb2bcc (diff) | |
download | libva-intel-driver-81aa858505acf4c1e096ed02e806340ab333500c.tar.gz libva-intel-driver-81aa858505acf4c1e096ed02e806340ab333500c.tar.bz2 libva-intel-driver-81aa858505acf4c1e096ed02e806340ab333500c.zip |
Fix the wrong pitch of surface for Video post-processing on BDW
Now the object surface already contains the pitch after the object surface
structure is reworked in the commit f886f24eaaacba9544fa5f6405b7382c686f3a1f.
So it is unnecessary to calculate the pitch based on the width.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rwxr-xr-x | src/i965_post_processing.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index d730c40..ef4a5b3 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -2479,11 +2479,9 @@ gen8_pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_proc else width[0] = obj_surface->orig_width; /* surface foramt is YCBCR, width is specified in units of pixels */ - pitch[0] = obj_surface->width * 2; } 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; |