media: hantro: Avoid redundant hantro_get_{dst,src}_buf() calls
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 19 Jul 2021 20:52:35 +0000 (22:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 06:42:44 +0000 (08:42 +0200)
commitb1e60562a62e0a8babbffcaff404ba36a19240ca
tree2d8c9499cd6fd0540d4c929913e48eee0b3313b6
parent96f33a5b325e630b31cde9a9393708f569a5f6ac
media: hantro: Avoid redundant hantro_get_{dst,src}_buf() calls

Getting the next src/dst buffer is relatively expensive
so avoid doing it multiple times.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_g1_h264_dec.c
drivers/staging/media/hantro/hantro_g1_vp8_dec.c
drivers/staging/media/hantro/rockchip_vpu2_hw_vp8_dec.c