Skip to content

Commit

Permalink
[Upstream]ARL S upstream (#5587)
Browse files Browse the repository at this point in the history
Co-authored-by: huangli <[email protected]>
  • Loading branch information
gfxVPLsdm and huangli2018 authored Aug 8, 2023
1 parent c9b5b25 commit 44647af
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _studio/mfx_lib/encode_hw/av1/av1ehw_disp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ static ImplBase* CreateSpecific(
impl = new AV1EHWDisp::Xe_HPM::MFXVideoENCODEAV1_HW(core, status, mode);
else if (hw == MFX_HW_MTL)
impl = new AV1EHWDisp::Xe_LPM_Plus::MFXVideoENCODEAV1_HW(core, status, mode);
else if (hw == MFX_HW_ARL)
impl = new AV1EHWDisp::Xe_LPM_Plus::MFXVideoENCODEAV1_HW(core, status, mode);


if (impl == nullptr)
Expand Down
2 changes: 1 addition & 1 deletion _studio/mfx_lib/shared/include/mfx_platform_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace CommonCaps {
inline bool IsPreSiPlatform(eMFXHWType platform, mfxU16 /*deviceId*/)
{

return platform >= MFX_HW_MTL;
return platform >= MFX_HW_ARL;
}

inline bool IsVppSkipQuerySupported(eMFXHWType platform, mfxU16 deviceId)
Expand Down
2 changes: 2 additions & 0 deletions _studio/mfx_lib/shared/src/mfx_common_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@


#define MFX_RT_PLATFORM_METEORLAKE 51
#define MFX_RT_PLATFORM_ARROWLAKE 54

mfxExtBuffer* GetExtendedBuffer(mfxExtBuffer** extBuf, mfxU32 numExtBuf, mfxU32 id)
{
Expand Down Expand Up @@ -1257,6 +1258,7 @@ mfxPlatform MakePlatform(eMFXHWType type, mfxU16 device_id)
platform.CodeName = MFX_PLATFORM_DG2; break;
// MFX_PLATFORM_METEORLAKE is not ready in spec, use MFX_RT_PLATFORM_METEORLAKE until spec updated
case MFX_HW_MTL : platform.CodeName = MFX_RT_PLATFORM_METEORLAKE; break;
case MFX_HW_ARL : platform.CodeName = MFX_RT_PLATFORM_ARROWLAKE; break;
default:
platform.MediaAdapterType = MFX_MEDIA_UNKNOWN;
platform.CodeName = MFX_PLATFORM_UNKNOWN; break;
Expand Down
4 changes: 4 additions & 0 deletions _studio/shared/include/mfxstructures-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ enum eMFXHWType

MFX_HW_PVC = MFX_HW_XE_HP_SDV + 2,
MFX_HW_MTL = 0x1700000,
MFX_HW_ARL = MFX_HW_MTL + 1,

};

Expand Down Expand Up @@ -555,6 +556,9 @@ typedef struct {
{ 0x7D45, MFX_HW_MTL, MFX_GT2 },
{ 0x7DE0, MFX_HW_MTL, MFX_GT2 },

/* ARL S */
{ 0x7D67, MFX_HW_ARL, MFX_GT2 },

};

/*
Expand Down

0 comments on commit 44647af

Please sign in to comment.