Skip to content

Commit

Permalink
[Media Common] [VP] set nativePrgressFence
Browse files Browse the repository at this point in the history
set nativePrgressFence.
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Jul 5, 2024
1 parent 710fa9d commit 8c5ba9c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions media_common/agnostic/common/os/mos_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,13 @@ namespace MediaUserSetting {
class Value;
};

typedef enum _NATIVE_FENCE_MODE
{
NATIVE_FENCE_MODE_DISABLE = 0,
NATIVE_FENCE_MODE_GPU_SYNC_BY_API = 1,
NATIVE_FENCE_MODE_GPU_SYNC_BY_CMD = 2
} NATIVE_FENCE_MODE;

using MediaUserSettingSharedPtr = std::shared_ptr<MediaUserSetting::MediaUserSetting>;

const unsigned int BITS_PER_BYTE = 8;
Expand Down
2 changes: 2 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 @@ -468,5 +468,7 @@
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_ENCODE_TIMEOUT "SyncSubmissionTimeOutEncode"
#define __MEDIA_USER_FEATURE_VALUE_IP_ALIGNMENT_VPP_TIMEOUT "SyncSubmissionTimeOutVPP"

// Native Fence Mode
#define __MEDIA_USER_FEATURE_VALUE_MEDIA_NATIVE_FENCE_MODE "Native Fence Mode"

#endif // __MOS_UTIL_USER_FEATURE_KEYS_H__
7 changes: 7 additions & 0 deletions media_softlet/agnostic/common/os/mos_user_setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,13 @@ MOS_STATUS MosUserSetting::InitMosCommonUserSetting(MediaUserSettingSharedPtr us
1,
true); //"Enable texture pooling in media driver."

DeclareUserSettingKey(
userSettingPtr,
__MEDIA_USER_FEATURE_VALUE_MEDIA_NATIVE_FENCE_MODE,
MediaUserSetting::Group::Device,
0,
true);

return MOS_STATUS_SUCCESS;
}

Expand Down

0 comments on commit 8c5ba9c

Please sign in to comment.