video: driver: Update AV1D Line buffer calculation

For legacy codecs, the line buffers are calculated by assuming
OPB size (worst-case). However, for AV1D, the line buffer size
can be smaller than required if OPB is assumed. Hence, add an
exception for AV1D.

Change-Id: I25b6ae630994e8c4c216499c10d7c217ad550d2b
Signed-off-by: Mihir Ganu <quic_mganu@quicinc.com>
This commit is contained in:
Mihir Ganu
2022-01-12 11:11:43 -08:00
parent ae4f5ce1c5
commit e8a948045a

View File

@@ -154,9 +154,11 @@ static u32 msm_vidc_decoder_line_size_iris3(struct msm_vidc_inst *inst)
is_opb = false;
/*
* assume worst case, since color format is unknown at this
* time
* time. The exception is AV1D, where line buffer size is larger
* in DPB-only mode.
*/
is_opb = true;
if (inst->codec != MSM_VIDC_AV1)
is_opb = true;
if (inst->decode_vpp_delay.enable)
vpp_delay = inst->decode_vpp_delay.size;