Skip to content

Commit

Permalink
[VP] refactor fallBackScalingToRender
Browse files Browse the repository at this point in the history
move WA to uerFeatureControl
  • Loading branch information
jiafengy1 authored and intel-mediadev committed Feb 28, 2025
1 parent f96eb02 commit 58876d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1362,8 +1362,7 @@ MOS_STATUS Policy::GetScalingExecutionCaps(SwFilter *feature, bool isHdrEnabled,
return MOS_STATUS_SUCCESS;
}

if (MEDIA_IS_WA(m_vpInterface.GetHwInterface()->m_waTable, Wa_16025683853) &&
fallbackScalingToRender8K == true &&
if (fallbackScalingToRender8K == true &&
scalingParams->input.dwHeight > 3072 &&
isScalingNeeded)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ MOS_STATUS VpUserFeatureControl::CreateUserSettingForDebug()
#endif
{
auto *waTable = m_osInterface->pfnGetWaTable(m_osInterface);
VP_PUBLIC_CHK_NULL_RETURN(waTable);
// Default value
m_ctrlValDefault.enableSFCLinearOutputByTileConvert = MEDIA_IS_WA(waTable, Wa_15016458807);
}
Expand All @@ -494,11 +495,12 @@ MOS_STATUS VpUserFeatureControl::CreateUserSettingForDebug()
else
#endif
{
// WA ID need be added before code merge.
// Do not set fallbackScalingToRender8K if render is disabled. This is for internal vesfc usage (e.g., 8k preenc) that should not fallback to render.
if (m_vpPlatformInterface && !m_vpPlatformInterface->IsRenderDisabled())
{
m_ctrlValDefault.fallbackScalingToRender8K = true;
auto *waTable = m_osInterface->pfnGetWaTable(m_osInterface);
VP_PUBLIC_CHK_NULL_RETURN(waTable);
m_ctrlValDefault.fallbackScalingToRender8K = MEDIA_IS_WA(waTable, Wa_16025683853);
}
}
VP_PUBLIC_NORMALMESSAGE("fallbackScalingToRender8K %d", m_ctrlValDefault.fallbackScalingToRender8K);
Expand Down

0 comments on commit 58876d5

Please sign in to comment.