Skip to content

Commit 58876d5

Browse files
jiafengy1intel-mediadev
authored andcommitted
[VP] refactor fallBackScalingToRender
move WA to uerFeatureControl
1 parent f96eb02 commit 58876d5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

media_softlet/agnostic/common/vp/hal/feature_manager/policy.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1362,8 +1362,7 @@ MOS_STATUS Policy::GetScalingExecutionCaps(SwFilter *feature, bool isHdrEnabled,
13621362
return MOS_STATUS_SUCCESS;
13631363
}
13641364

1365-
if (MEDIA_IS_WA(m_vpInterface.GetHwInterface()->m_waTable, Wa_16025683853) &&
1366-
fallbackScalingToRender8K == true &&
1365+
if (fallbackScalingToRender8K == true &&
13671366
scalingParams->input.dwHeight > 3072 &&
13681367
isScalingNeeded)
13691368
{

media_softlet/agnostic/common/vp/hal/utils/vp_user_feature_control.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ MOS_STATUS VpUserFeatureControl::CreateUserSettingForDebug()
473473
#endif
474474
{
475475
auto *waTable = m_osInterface->pfnGetWaTable(m_osInterface);
476+
VP_PUBLIC_CHK_NULL_RETURN(waTable);
476477
// Default value
477478
m_ctrlValDefault.enableSFCLinearOutputByTileConvert = MEDIA_IS_WA(waTable, Wa_15016458807);
478479
}
@@ -494,11 +495,12 @@ MOS_STATUS VpUserFeatureControl::CreateUserSettingForDebug()
494495
else
495496
#endif
496497
{
497-
// WA ID need be added before code merge.
498498
// Do not set fallbackScalingToRender8K if render is disabled. This is for internal vesfc usage (e.g., 8k preenc) that should not fallback to render.
499499
if (m_vpPlatformInterface && !m_vpPlatformInterface->IsRenderDisabled())
500500
{
501-
m_ctrlValDefault.fallbackScalingToRender8K = true;
501+
auto *waTable = m_osInterface->pfnGetWaTable(m_osInterface);
502+
VP_PUBLIC_CHK_NULL_RETURN(waTable);
503+
m_ctrlValDefault.fallbackScalingToRender8K = MEDIA_IS_WA(waTable, Wa_16025683853);
502504
}
503505
}
504506
VP_PUBLIC_NORMALMESSAGE("fallbackScalingToRender8K %d", m_ctrlValDefault.fallbackScalingToRender8K);

0 commit comments

Comments
 (0)