From eed6dab91080e0f9fd77dcd84891723a681c232a Mon Sep 17 00:00:00 2001 From: "Yuan, Jenny" Date: Wed, 18 Dec 2024 20:41:23 +0000 Subject: [PATCH] [RT Common] PTL upstream RT common changes for PTL open source --- _studio/mfx_lib/shared/src/mfx_common_int.cpp | 2 ++ _studio/shared/include/mfxstructures-int.h | 12 ++++++++++++ _studio/shared/src/libmfx_core_vaapi.cpp | 1 + 3 files changed, 15 insertions(+) diff --git a/_studio/mfx_lib/shared/src/mfx_common_int.cpp b/_studio/mfx_lib/shared/src/mfx_common_int.cpp index 9a5601a3d..011cde55e 100644 --- a/_studio/mfx_lib/shared/src/mfx_common_int.cpp +++ b/_studio/mfx_lib/shared/src/mfx_common_int.cpp @@ -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; diff --git a/_studio/shared/include/mfxstructures-int.h b/_studio/shared/include/mfxstructures-int.h index b8e7865aa..5bd4bc6c3 100644 --- a/_studio/shared/include/mfxstructures-int.h +++ b/_studio/shared/include/mfxstructures-int.h @@ -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 @@ -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 diff --git a/_studio/shared/src/libmfx_core_vaapi.cpp b/_studio/shared/src/libmfx_core_vaapi.cpp index 2fb0f9b71..7873e30e5 100644 --- a/_studio/shared/src/libmfx_core_vaapi.cpp +++ b/_studio/shared/src/libmfx_core_vaapi.cpp @@ -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;