media: hantro: postproc: Fix motion vector space allocation
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 27 Jul 2020 17:05:38 +0000 (19:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 12:13:25 +0000 (14:13 +0200)
commit669ccf19ed2059b9d517664a2dbbf6bde87e1414
treedc15b94afd70f7db8dce0f1cb3695741d9595e38
parent6d9e8cd0553bb03e8ab9d4d2d7d17f3fb639bd86
media: hantro: postproc: Fix motion vector space allocation

When the post-processor is enabled, the driver allocates
"shadow buffers" which are used for the decoder core,
and exposes the post-processed buffers to userspace.

For this reason, extra motion vector space has to
be allocated on the shadow buffers, which the driver
wasn't doing. Fix it.

This fix should address artifacts on high profile bitstreams.

Fixes: 8c2d66b036c77 ("media: hantro: Support color conversion via post-processing")
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_postproc.c