Skip to content

Commit

Permalink
[Encode] vdencAvcImgStatePar1 set to 0 for bug fix
Browse files Browse the repository at this point in the history
vdencAvcImgStatePar1 set to 0 for bug fix.
  • Loading branch information
bai-isaac authored and intel-mediadev committed Oct 9, 2023
1 parent 509ab5f commit 0ee666a
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,27 @@ MHW_SETPAR_DECL_SRC(VDENC_AVC_IMG_STATE, AvcVdencStreamInFeature)
params.mbLevelQpEnable = m_enabled && picParams->EnableRollingIntraRefresh == ROLLING_I_DISABLED &&
(picParams->NumROI && !picParams->bNativeROI || m_basicFeature->m_mbQpDataEnabled);

if (m_enabled)
{
PMOS_INTERFACE osInterface = m_hwInterface->GetOsInterface();
ENCODE_CHK_NULL_RETURN(osInterface);
MEDIA_WA_TABLE *pWaTable = osInterface->pfnGetWaTable(osInterface);
ENCODE_CHK_NULL_RETURN(pWaTable);

if (MEDIA_IS_WA(pWaTable, Wa_15013906446))
{
#if _MEDIA_RESERVED
params.vdencAvcImgStatePar1 = 0;
#else
params.extSettings.emplace_back(
[this](uint32_t *data) {
data[2] &= 0xffffff7f;
return MOS_STATUS_SUCCESS;
});
#endif // _MEDIA_RESERVED
}
}

return MOS_STATUS_SUCCESS;
}

Expand Down

0 comments on commit 0ee666a

Please sign in to comment.