diff --git a/media_common/agnostic/common/os/mos_os_trace_event.h b/media_common/agnostic/common/os/mos_os_trace_event.h index 2670b782ae7..284d2c78602 100644 --- a/media_common/agnostic/common/os/mos_os_trace_event.h +++ b/media_common/agnostic/common/os/mos_os_trace_event.h @@ -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 diff --git a/media_common/agnostic/common/os/mos_util_user_feature_keys.h b/media_common/agnostic/common/os/mos_util_user_feature_keys.h index 0e25ab83718..144c31e0126 100644 --- a/media_common/agnostic/common/os/mos_util_user_feature_keys.h +++ b/media_common/agnostic/common/os/mos_util_user_feature_keys.h @@ -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__ diff --git a/media_softlet/agnostic/common/os/mos_user_setting.cpp b/media_softlet/agnostic/common/os/mos_user_setting.cpp index 59e80d3e3ee..bfde2293184 100644 --- a/media_softlet/agnostic/common/os/mos_user_setting.cpp +++ b/media_softlet/agnostic/common/os/mos_user_setting.cpp @@ -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,