video: driver: fix invalid output buffer tag receipt in fence usecase

When fence is enabled, output buffer tag is sent to fw via
output metadata buffer. Since fw relies on bytesused field of
output metadata buffer to invalidate cache and perform read operation,
output metadata buffer's filled length cannot be zero.
Hence set valid size for bytesused field to fix this issue.

Change-Id: I7bd87ec49508402d2d654095f06e75992771c39d
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
Cette révision appartient à :
Akshata Sahukar
2022-04-29 14:39:43 -07:00
révisé par Gerrit - the friendly Code Review server
Parent 57b55c5c22
révision 91f3bc9ab7
6 fichiers modifiés avec 51 ajouts et 22 suppressions

Voir le fichier

@@ -153,6 +153,36 @@ static inline bool is_meta_tx_out_enabled(struct msm_vidc_inst *inst, u32 cap)
return enabled;
}
static inline bool is_any_meta_tx_out_enabled(struct msm_vidc_inst *inst)
{
bool enabled = false;
u32 i;
for (i = INST_CAP_NONE + 1; i < META_CAP_MAX; i++) {
if (is_meta_tx_out_enabled(inst, i)) {
enabled = true;
break;
}
}
return enabled;
}
static inline bool is_any_meta_tx_inp_enabled(struct msm_vidc_inst *inst)
{
bool enabled = false;
u32 i;
for (i = INST_CAP_NONE + 1; i < META_CAP_MAX; i++) {
if (is_meta_tx_inp_enabled(inst, i)) {
enabled = true;
break;
}
}
return enabled;
}
static inline bool is_input_meta_enabled(struct msm_vidc_inst *inst)
{
bool enabled = false;