OSDN Git Service

Don't check the stride in the y direction for a single plane surface
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 12 Jul 2017 01:44:11 +0000 (09:44 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 13 Jul 2017 06:15:29 +0000 (14:15 +0800)
commit17bc8a0cb96b6ef02475ad598c626cd9e266a1cc
tree357383b3fdcdfb470bb2790dfaf342deb20058e9
parent8e9b449ee437e459dfe5b757591417152dc28ec2
Don't check the stride in the y direction for a single plane surface

obj_surface->height is used to calculate the offset for U/V plane. for a
surface with single plane, the check is unnecessary

This fixes https://github.com/01org/intel-vaapi-driver/issues/222

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Daniel Charles <daniel.charles@intel.com>
Tested-by: Daniel Charles <daniel.charles@intel.com>
src/i965_drv_video.c