Skip to content

Commit

Permalink
[RT Common] PTL upstream
Browse files Browse the repository at this point in the history
RT common changes for PTL open source
  • Loading branch information
jinyuan-dev authored and gfxVPLsdm committed Dec 18, 2024
1 parent 32f066c commit eed6dab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
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 @@ -1280,6 +1280,8 @@ mfxPlatform MakePlatform(eMFXHWType type, mfxU16 device_id)
case MFX_HW_BMG :
platform.MediaAdapterType = MFX_MEDIA_DISCRETE;
platform.CodeName = MFX_PLATFORM_BATTLEMAGE; break;
// From Pantherlake platform.CodeName will be filled with MFX_PLATFORM_MAXIMUM. NOT to create any new CodeName values.
case MFX_HW_PTL : platform.CodeName = MFX_PLATFORM_MAXIMUM; break;
default:
platform.MediaAdapterType = MFX_MEDIA_UNKNOWN;
platform.CodeName = MFX_PLATFORM_UNKNOWN; break;
Expand Down
12 changes: 12 additions & 0 deletions _studio/shared/include/mfxstructures-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ enum eMFXHWType
MFX_HW_BMG = MFX_HW_MTL + 2,
MFX_HW_LNL = MFX_HW_MTL + 3,

MFX_HW_PTL = 0x1800000,

};

enum eMFXGTConfig
Expand Down Expand Up @@ -597,6 +599,16 @@ typedef struct {
{ 0x64A0, MFX_HW_LNL, MFX_GT2 },
{ 0x64B0, MFX_HW_LNL, MFX_GT2 },

/* PTL / Pantherlake */
{ 0xB080, MFX_HW_PTL, MFX_GT2 },
{ 0xB081, MFX_HW_PTL, MFX_GT2 },
{ 0xB082, MFX_HW_PTL, MFX_GT2 },
{ 0xB083, MFX_HW_PTL, MFX_GT2 },
{ 0xB08F, MFX_HW_PTL, MFX_GT2 },
{ 0xB090, MFX_HW_PTL, MFX_GT2 },
{ 0xB0A0, MFX_HW_PTL, MFX_GT2 },
{ 0xB0B0, MFX_HW_PTL, MFX_GT2 },

};

enum
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 @@ -414,6 +414,7 @@ class VACopyWrapper
case MFX_HW_ARL:
case MFX_HW_LNL:
case MFX_HW_BMG:
case MFX_HW_PTL:
return true;
default:
return false;
Expand Down

0 comments on commit eed6dab

Please sign in to comment.