]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: hantro: postproc: Fix motion vector space allocation
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 27 Jul 2020 17:05:38 +0000 (19:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:07:19 +0000 (10:07 +0100)
commit3bc4af05a1255cf0ca938bc2551c7ef2335b5663
tree072f0a343e8ece83e44a14b7d69dd7035ceded6a
parent841d6b2bb64a093004f47a37fbfd9e2f285d9aa7
media: hantro: postproc: Fix motion vector space allocation

[ Upstream commit 669ccf19ed2059b9d517664a2dbbf6bde87e1414 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/hantro/hantro_postproc.c