Skip to content

Commit 0c6f2d5

Browse files
huangli2018intel-mediadev
authored andcommitted
[VP] Disable VP features
Disable some VP features
1 parent 14e2e7b commit 0c6f2d5

File tree

1 file changed

+27
-1
lines changed
  • media_softlet/agnostic/common/vp/hal/feature_manager

1 file changed

+27
-1
lines changed

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

+27-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,33 @@ Policy::~Policy()
5252
}
5353

5454
MOS_STATUS Policy::UpdateVpHwCapsBasedOnSku(VP_HW_CAPS &vpHwCaps)
55-
{
55+
{
56+
VP_FUNC_CALL();
57+
58+
VP_PUBLIC_CHK_NULL_RETURN(m_vpInterface.GetHwInterface());
59+
VP_PUBLIC_CHK_NULL_RETURN(m_vpInterface.GetHwInterface()->m_userFeatureControl);
60+
61+
auto userFeatureControl = m_vpInterface.GetHwInterface()->m_userFeatureControl;
62+
bool veboxTypeH = userFeatureControl->IsVeboxTypeHMode();
63+
if (veboxTypeH)
64+
{
65+
VP_PUBLIC_NORMALMESSAGE("Disable vebox features for veboxTypeH.");
66+
for (int i = 0; i < Format_Count; i++)
67+
{
68+
//update caps per sku
69+
m_hwCaps.m_veboxHwEntry[i].capturePipeSupported = false;
70+
m_hwCaps.m_veboxHwEntry[i].denoiseSupported = false;
71+
m_hwCaps.m_veboxHwEntry[i].deinterlaceSupported = false;
72+
m_hwCaps.m_veboxHwEntry[i].laceSupported = false;
73+
m_hwCaps.m_veboxHwEntry[i].frontCscSupported = false;
74+
m_hwCaps.m_veboxHwEntry[i].backEndCscSupported = false;
75+
m_hwCaps.m_veboxHwEntry[i].iecp = false;
76+
m_hwCaps.m_veboxHwEntry[i].tccSupported = false;
77+
m_hwCaps.m_veboxHwEntry[i].aceSupported = false;
78+
m_hwCaps.m_veboxHwEntry[i].steSupported = false;
79+
m_hwCaps.m_veboxHwEntry[i].cgcSupported = false;
80+
}
81+
}
5682
return MOS_STATUS_SUCCESS;
5783
}
5884

0 commit comments

Comments
 (0)