Skip to content

Commit

Permalink
[RT Common] BMG open source
Browse files Browse the repository at this point in the history
RT Common code changes for BMG open source.
  • Loading branch information
jinyuan-dev authored and gfxVPLsdm committed Aug 22, 2024
1 parent 8994599 commit edee39e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _studio/mfx_lib/shared/src/mfx_common_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,9 @@ mfxPlatform MakePlatform(eMFXHWType type, mfxU16 device_id)
case MFX_HW_MTL : platform.CodeName = MFX_PLATFORM_METEORLAKE; break;
case MFX_HW_ARL : platform.CodeName = MFX_PLATFORM_ARROWLAKE; break;
case MFX_HW_LNL : platform.CodeName = MFX_PLATFORM_LUNARLAKE; break;
case MFX_HW_BMG :
platform.MediaAdapterType = MFX_MEDIA_DISCRETE;
platform.CodeName = MFX_PLATFORM_BATTLEMAGE; break;
default:
platform.MediaAdapterType = MFX_MEDIA_UNKNOWN;
platform.CodeName = MFX_PLATFORM_UNKNOWN; break;
Expand Down
7 changes: 7 additions & 0 deletions _studio/shared/include/mfxstructures-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ enum eMFXHWType

MFX_HW_MTL = 0x1700000,
MFX_HW_ARL = MFX_HW_MTL + 1,
MFX_HW_BMG = MFX_HW_MTL + 2,
MFX_HW_LNL = MFX_HW_MTL + 3,

};
Expand Down Expand Up @@ -582,6 +583,12 @@ typedef struct {
{ 0x7DD1, MFX_HW_ARL, MFX_GT2 },
{ 0x7D41, MFX_HW_ARL, MFX_GT2 },

/* BMG */
{ 0xE202, MFX_HW_BMG, MFX_GT4 },
{ 0xE20B, MFX_HW_BMG, MFX_GT4 },
{ 0xE20C, MFX_HW_BMG, MFX_GT4 },
{ 0xE20D, MFX_HW_BMG, MFX_GT4 },
{ 0xE212, MFX_HW_BMG, MFX_GT4 },

/* LNL */
{ 0x6420, MFX_HW_LNL, MFX_GT2 },
Expand Down
1 change: 1 addition & 0 deletions _studio/shared/src/libmfx_core_vaapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ class VACopyWrapper
case MFX_HW_MTL:
case MFX_HW_DG2:
case MFX_HW_LNL:
case MFX_HW_BMG:
return true;
default:
return false;
Expand Down

0 comments on commit edee39e

Please sign in to comment.