File tree 1 file changed +13
-1
lines changed
media_softlet/agnostic/common/hw
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -901,6 +901,7 @@ class Impl : public Itf, public mhw::Impl
901
901
{
902
902
MHW_CHK_NULL_RETURN (m_veboxHeap);
903
903
MHW_CHK_NULL_RETURN (m_veboxHeap->pStates );
904
+ uint32_t reportedUsedID = 0 ;
904
905
for (uint32_t index = 0 ; index < m_veboxSettings.uiNumInstances ; index ++)
905
906
{
906
907
const MHW_VEBOX_HEAP_STATE &curInstance = m_veboxHeap->pStates [index ];
@@ -909,10 +910,21 @@ class Impl : public Itf, public mhw::Impl
909
910
m_usedVeboxID |= 1 << (*curInstance.engineData ).instanceId ;
910
911
}
911
912
}
913
+ // It is only used in debugging scenarios for multi-Vebox platforms.
914
+ // No need to add any locks here.
915
+ // This approach can handle all current debugging scenarios with multiple threads/processes.
916
+ ReadUserSettingForDebug (
917
+ m_userSettingPtr,
918
+ reportedUsedID,
919
+ __MEDIA_USER_FEATURE_VALUE_USED_VEBOX_ID,
920
+ MediaUserSetting::Group::Sequence,
921
+ 0 ,
922
+ false ,
923
+ MEDIA_USER_SETTING_INTERNAL_REPORT);
912
924
ReportUserSettingForDebug (
913
925
m_userSettingPtr,
914
926
__MEDIA_USER_FEATURE_VALUE_USED_VEBOX_ID,
915
- m_usedVeboxID,
927
+ reportedUsedID | m_usedVeboxID,
916
928
MediaUserSetting::Group::Sequence);
917
929
}
918
930
return MOS_STATUS_SUCCESS;
You can’t perform that action at this time.
0 commit comments