Skip to content

Commit

Permalink
[media common] [VP] move media copy from close source to opensource f…
Browse files Browse the repository at this point in the history
…or Xe_Lpm_plus and Xe_Xpm_plus (#4205)

Co-authored-by: fenhu <[email protected]>
  • Loading branch information
gfxVPLsdm and fenhu authored Dec 23, 2022
1 parent 607cf81 commit 6f7ecc1
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _studio/shared/include/libmfx_core_vaapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ struct VaGuidMapper
};

class CmCopyWrapper;
class VACopyWrapper;

// disable the "conditional expression is constant" warning
#ifdef _MSVC_LANG
Expand Down Expand Up @@ -228,6 +229,8 @@ class VAAPIVideoCORE_T : public Base

mfxU32 m_ForcedCmState = MFX_GPUCOPY_DEFAULT;
std::unique_ptr<CmCopyWrapper> m_pCmCopy;
std::unique_ptr<VACopyWrapper> m_pVaCopy;

#if defined (MFX_ENABLE_VPP)
VPPHWResMng m_vpp_hw_resmng;
#endif
Expand Down
16 changes: 14 additions & 2 deletions _studio/shared/include/mfxstructures-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ enum eMFXHWType
MFX_HW_XE_HP_SDV = MFX_HW_TGL_LP + 7,
MFX_HW_DG2 = MFX_HW_TGL_LP + 8,



MFX_HW_PVC = MFX_HW_XE_HP_SDV + 2,
MFX_HW_MTL = 0x1700000,

};
Expand Down Expand Up @@ -530,6 +529,19 @@ typedef struct {
{ 0x56C0, MFX_HW_DG2, MFX_GT4 }, // DG2
{ 0x56C1, MFX_HW_DG2, MFX_GT4 }, // DG2

/* PVC */
{ 0x0BD0, MFX_HW_PVC, MFX_GT4 },
{ 0x0BD5, MFX_HW_PVC, MFX_GT4 },
{ 0x0BD6, MFX_HW_PVC, MFX_GT4 },
{ 0x0BD7, MFX_HW_PVC, MFX_GT4 },
{ 0x0BD8, MFX_HW_PVC, MFX_GT4 },
{ 0x0BD9, MFX_HW_PVC, MFX_GT4 },
{ 0x0BDA, MFX_HW_PVC, MFX_GT4 },
{ 0x0BDB, MFX_HW_PVC, MFX_GT4 },
{ 0x0BE0, MFX_HW_PVC, MFX_GT4 },
{ 0x0BE1, MFX_HW_PVC, MFX_GT4 },
{ 0x0BE5, MFX_HW_PVC, MFX_GT4 },


/* MTL */
{ 0x7D40, MFX_HW_MTL, MFX_GT2 },
Expand Down
Loading

0 comments on commit 6f7ecc1

Please sign in to comment.