gpu: ipu-v3: image-convert: Fix input bytesperline width/height align
authorSteve Longerbeam <slongerbeam@gmail.com>
Wed, 12 Jun 2019 01:16:55 +0000 (18:16 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 14 Jun 2019 12:06:16 +0000 (14:06 +0200)
commitff391ecd65a1b8324c49046c3db98d9c8ab29af9
tree1f2640ab082ada50ab75644af44c3f93fb0bd31e
parentd1fdb6d8f6a4109a4263176c84b899076a5f8008
gpu: ipu-v3: image-convert: Fix input bytesperline width/height align

The output width and height alignment values were being used in the
input bytesperline calculation. Fix by separating local vars w_align
and h_align into w_align_in, h_align_in, w_align_out, and h_align_out.

Fixes: d966e23d61a2c ("gpu: ipu-v3: image-convert: fix bytesperline
adjustment")

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-image-convert.c