Skip to content

Commit

Permalink
[Media Common] Add interfaces and user settings for IPA
Browse files Browse the repository at this point in the history
Add ETW events and user settings for IPA
  • Loading branch information
HeFan2017 authored and intel-mediadev committed Oct 12, 2023
1 parent 4b20470 commit 2451cc4
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media_common/agnostic/common/os/mos_os_trace_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ typedef enum _MEDIA_EVENT
EVENT_DECODE_DDI_SETGPUPRIORITYVA, //! event for Decode DDI SetGpuPriority
EVENT_DECODE_FEATURE_DECODEMODE_REPORTVA, //! event for Decode Feature Decode Mode Report
EVENT_DECODE_INFO_PICTUREVA, //! event for Decode Picture Info VA
EVENT_DECODE_IP_ALIGNMENT, //! event for Decode IP Alignment
EVENT_ENCODE_IP_ALIGNMENT, //! event for Encode IP Alignment
EVENT_VPP_IP_ALIGNMENT, //! event for VPP IP Alignment
} MEDIA_EVENT;

typedef enum _MEDIA_EVENT_TYPE
Expand Down
7 changes: 7 additions & 0 deletions media_common/agnostic/common/os/mos_util_user_feature_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,13 @@
#define __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_VECS "VECS Instance"
#define __MEDIA_USER_FEATURE_VALUE_ENGINE_INSTANCE_CCS "CCS Instance"

// IP alignment support
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_DECODE_ENABLE "EnableSyncSubmissionDecode"
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_ENABLE "EnableSyncSubmissionEncode"
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_ENABLE "EnableSyncSubmissionVPP"
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_DECODE_TIMEOUT "SyncSubmissionTimeOutDecode"
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_TIMEOUT "SyncSubmissionTimeOutEncode"
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_TIMEOUT "SyncSubmissionTimeOutVPP"


#endif // __MOS_UTIL_USER_FEATURE_KEYS_H__
42 changes: 42 additions & 0 deletions media_softlet/agnostic/common/os/mos_user_setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,48 @@ MOS_STATUS MosUserSetting::InitMosCommonUserSetting(MediaUserSettingSharedPtr us
int32_t(0),
false);

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_DECODE_ENABLE,
MediaUserSetting::Group::Device,
2,
false);

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_ENABLE,
MediaUserSetting::Group::Device,
2,
false);

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_ENABLE,
MediaUserSetting::Group::Device,
2,
false);

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_DECODE_TIMEOUT,
MediaUserSetting::Group::Device,
20,
false);

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_TIMEOUT,
MediaUserSetting::Group::Device,
20,
false);

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_TIMEOUT,
MediaUserSetting::Group::Device,
20,
false);

DeclareUserSettingKey( //TRUE for Enabling Vebox Scalability. (Default FALSE: disabled")
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_ENABLE_VEBOX_SCALABILITY_MODE,
Expand Down

0 comments on commit 2451cc4

Please sign in to comment.