Skip to content

Commit e54f709

Browse files
wangyan-intelintel-mediadev
authored andcommitted
[Decode] Add Pipe Num for NULL HW
Query from the reg key.
1 parent 6291c96 commit e54f709

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

media_common/agnostic/common/os/mos_util_user_feature_keys.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@
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"

media_softlet/agnostic/common/os/mos_os_mock_adaptor.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ bool MosMockAdaptor::m_enabled = false;
3939
PRODUCT_FAMILY MosMockAdaptor::m_productFamily = {};
4040
std::string MosMockAdaptor::m_stepping = {};
4141
uint16_t MosMockAdaptor::m_deviceId = 0;
42+
uint16_t MosMockAdaptor::m_numOfVdbox = 1;
4243
MosMockAdaptor *MosMockAdaptor::m_mocAdaptor = nullptr;
4344

4445
MosMockAdaptor::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

media_softlet/agnostic/common/os/mos_os_mock_adaptor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

148149
MEDIA_CLASS_DEFINE_END(MosMockAdaptor)

media_softlet/agnostic/common/os/mos_user_setting.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)