gpu: ipu-v3: image-convert: Enable double write reduction
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 14 Jun 2019 01:02:55 +0000 (18:02 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 14 Jun 2019 13:33:02 +0000 (15:33 +0200)
commitfee77829083ad70845bd650f3c84c5900c5abae1
tree74a839ba7f556df2fbd745845303546c558279a3
parent4791bd7d6adc406e12e4f69588ef201d39c3d8ac
gpu: ipu-v3: image-convert: Enable double write reduction

For the write channels with 4:2:0 subsampled YUV formats, avoid chroma
overdraw by only writing chroma for even lines (skip odd chroma rows).
This reduces necessary write memory bandwidth by at least 25% (more
with rotation enabled).

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