From 2e346a8cd16da36f8357f9be8f8c8e9a4047cf12 Mon Sep 17 00:00:00 2001 From: JayYang Date: Wed, 22 Jan 2025 10:51:25 +0800 Subject: [PATCH] [Encode] [PDVT-SH] [VP] Do not fallback to render when render path is disabled 8K Preenc DS would fallback to render due to ptl a0 WA. This will cause error because render path not supported by media sfc interface. Skip the fallback for such cases. --- .../common/vp/hal/utils/vp_user_feature_control.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/media_softlet/agnostic/common/vp/hal/utils/vp_user_feature_control.cpp b/media_softlet/agnostic/common/vp/hal/utils/vp_user_feature_control.cpp index 122001cdabe..91c3fb0d035 100644 --- a/media_softlet/agnostic/common/vp/hal/utils/vp_user_feature_control.cpp +++ b/media_softlet/agnostic/common/vp/hal/utils/vp_user_feature_control.cpp @@ -495,7 +495,11 @@ MOS_STATUS VpUserFeatureControl::CreateUserSettingForDebug() #endif { // WA ID need be added before code merge. - m_ctrlValDefault.fallbackScalingToRender8K = 1; + // 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; + } } VP_PUBLIC_NORMALMESSAGE("fallbackScalingToRender8K %d", m_ctrlValDefault.fallbackScalingToRender8K);