Skip to content

Commit 91865ab

Browse files
chenhao5-Intelintel-mediadev
authored andcommitted
[Encode] Refactor MOS Msg ULT Flags
Refactor MOS msg ULT flags: 1.set all msg level to CIRTICAL; 2.set all comp bBySubComponent to 1; 3.assert all enable.
1 parent c2b5f80 commit 91865ab

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

media_softlet/agnostic/common/os/mos_util_debug.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,17 @@ void MosUtilDebug::MosMessageInit(MediaUserSettingSharedPtr userSettingPtr)
518518

519519
if (MosUtilities::m_mosUltFlag && (*MosUtilities::m_mosUltFlag))
520520
{
521-
MosSetCompMessageLevelAll(MOS_MESSAGE_LVL_DISABLED);
522-
MosSetCompMessageLevel(MOS_COMPONENT_OS, MOS_MESSAGE_LVL_CRITICAL);
523-
MosSetCompMessageLevel(MOS_COMPONENT_VP, MOS_MESSAGE_LVL_CRITICAL);
521+
// set all msg level
522+
MosSetCompMessageLevelAll(MOS_MESSAGE_LVL_CRITICAL);
524523
m_mosMsgParams.bUseOutputDebugString = 1;
525-
m_mosMsgParams.components[MOS_COMPONENT_OS].bBySubComponent = 0;
526-
MosCompAssertEnableDisable(MOS_COMPONENT_CM, 0);
527-
MosCompAssertEnableDisable(MOS_COMPONENT_VP, 1);
524+
525+
for (int compID = MOS_COMPONENT_OS; compID < MOS_COMPONENT_COUNT; compID++)
526+
{
527+
//set all comp's bBySubComponent to 1
528+
m_mosMsgParams.components[compID].bBySubComponent = 1;
529+
//assert all enable
530+
m_mosMsgParams.components[compID].component.bAssertEnabled = 1;
531+
}
528532
}
529533

530534
MosHLTInit(userSettingPtr);

0 commit comments

Comments
 (0)