video: driver: Adjust bandwidth calculations for AV1

Consider AV1 LCU sizes and add AV1 considerations
while calculating bandwidth votes.

Change-Id: I0a6bff1bb142fb0eed44d4c3c458a916d11d6f57
Signed-off-by: Mihir Ganu <quic_mganu@quicinc.com>
This commit is contained in:
Mihir Ganu
2022-07-22 10:30:01 -07:00
committato da Gerrit - the friendly Code Review server
parent c5d589a044
commit 525f1f5071
2 ha cambiato i file con 4 aggiunte e 8 eliminazioni

Vedi File

@@ -260,7 +260,7 @@ static u64 __calculate_decoder(struct vidc_bus_vote_data *d)
fp_t dpb_read_compression_factor, dpb_opb_scaling_ratio,
dpb_write_compression_factor, opb_write_compression_factor,
qsmmu_bw_overhead_factor;
bool is_h264_category = true;
bool is_h264_category = (d->codec == MSM_VIDC_H264) ? true : false;
/* Derived parameters */
int lcu_per_frame, collocated_bytes_per_lcu, tnbr_per_lcu;
@@ -319,13 +319,6 @@ static u64 __calculate_decoder(struct vidc_bus_vote_data *d)
num_vpp_pipes = d->num_vpp_pipes;
if (d->codec == MSM_VIDC_HEVC ||
d->codec == MSM_VIDC_HEIC ||
d->codec == MSM_VIDC_VP9) {
/* H264, VP8, MPEG2 use the same settings */
/* HEVC, VP9 use the same setting */
is_h264_category = false;
}
if (d->use_sys_cache) {
llc_ref_read_l2_cache_enabled = true;
if (is_h264_category)