media: hantro: HEVC: unconditionnaly set pps_{cb/cr}_qp_offset values
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Tue, 3 May 2022 15:19:20 +0000 (17:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:37 +0000 (10:22 +0200)
commitc16cfcac77ecc3077c516ae512b79031c76945af
treee1d51950bb1c6c68919bbb9921b4e65d122e6917
parenta1f2cb0a26133f2c013a42aa8d1b1b2ce691631d
media: hantro: HEVC: unconditionnaly set pps_{cb/cr}_qp_offset values

[ Upstream commit 46c836569196f377f87a3657b330cffaf94bd727 ]

Always set pps_cb_qp_offset and pps_cr_qp_offset values in Hantro/G2
register whatever is V4L2_HEVC_PPS_FLAG_PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT
flag value.
The vendor code does the same to set these values.
This fixes conformance test CAINIT_G_SHARP_3.

Fluster HEVC score is increase by one with this patch.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/hantro/hantro_g2_hevc_dec.c