File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
media_common/agnostic/common/os
media_softlet/agnostic/common/os Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 430430#define __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_PLATFORM "MockAdaptor Platform"
431431#define __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_STEPPING "MockAdaptor Stepping"
432432#define __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_DEVICE "MockAdaptor Device ID"
433+ #define __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_PIPE "MockAdaptor Pipe"
433434
434435//User feature key for enable Perf Utility Tool
435436#define __MEDIA_USER_FEATURE_VALUE_PERF_UTILITY_TOOL_ENABLE "Perf Utility Tool Enable"
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ bool MosMockAdaptor::m_enabled = false;
3939PRODUCT_FAMILY MosMockAdaptor::m_productFamily = {};
4040std::string MosMockAdaptor::m_stepping = {};
4141uint16_t MosMockAdaptor::m_deviceId = 0 ;
42+ uint16_t MosMockAdaptor::m_numOfVdbox = 1 ;
4243MosMockAdaptor *MosMockAdaptor::m_mocAdaptor = nullptr ;
4344
4445MosMockAdaptor::MosMockAdaptor ()
@@ -88,6 +89,14 @@ MOS_STATUS MosMockAdaptor::RegkeyRead(PMOS_CONTEXT osContext)
8889 MediaUserSetting::Group::Device);
8990 m_deviceId = (uint16_t )value;
9091
92+ value = 0 ;
93+ ReadUserSettingForDebug (
94+ userSettingPtr,
95+ value,
96+ __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_PIPE,
97+ MediaUserSetting::Group::Device);
98+ m_numOfVdbox = (uint16_t )value;
99+
91100 return eStatus;
92101}
93102
@@ -162,6 +171,8 @@ MOS_STATUS MosMockAdaptor::InitContext(
162171 eStatus = MOS_STATUS_PLATFORM_NOT_SUPPORTED;
163172 }
164173
174+ m_pGtSystemInfo->VDBoxInfo .NumberOfVDBoxEnabled = m_numOfVdbox;
175+
165176 return eStatus;
166177}
167178
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ class MosMockAdaptor
143143 static PRODUCT_FAMILY m_productFamily;
144144 static std::string m_stepping;
145145 static uint16_t m_deviceId;
146+ static uint16_t m_numOfVdbox;
146147 static MosMockAdaptor *m_mocAdaptor;
147148
148149MEDIA_CLASS_DEFINE_END (MosMockAdaptor)
Original file line number Diff line number Diff line change @@ -1434,6 +1434,13 @@ MOS_STATUS MosUserSetting::InitUserSettingForDebug(MediaUserSettingSharedPtr use
14341434 39497 ,
14351435 true ); // "Device ID of mock device, default is 0x9A49"
14361436
1437+ DeclareUserSettingKeyForDebug (
1438+ userSettingPtr,
1439+ __MEDIA_USER_FEATURE_VALUE_MOCKADAPTOR_PIPE,
1440+ MediaUserSetting::Group::Device,
1441+ 0 ,
1442+ true ); // "The pipe number of mock device, default is 1"
1443+
14371444 // Tile resource info report
14381445 DeclareUserSettingKeyForDebug (
14391446 userSettingPtr,
You can’t perform that action at this time.
0 commit comments