Skip to content

Commit

Permalink
[Encode] Make MediaInterfacesHwInfo available for G9
Browse files Browse the repository at this point in the history
CFL and KBL enabled
  • Loading branch information
saosipov authored and intel-mediadev committed Oct 25, 2021
1 parent a6cc72e commit 8117c0f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@ MOS_STATUS DecodeHistogramDeviceG9Cfl::Initialize(
return MOS_STATUS_SUCCESS;
}

#define IP_VERSION_M9_0 0x0900
MOS_STATUS MediaInterfacesHwInfoDeviceG9Cfl::Initialize(PLATFORM platform)
{
m_hwInfo.SetDeviceInfo(IP_VERSION_M9_0, platform.usRevId);
return MOS_STATUS_SUCCESS;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "media_interfaces.h"
#include "media_interfaces_cmhal.h"
#include "media_interfaces_decode_histogram.h"
#include "media_interfaces_hwinfo_device.h"

#include "cm_hal_g9.h"

Expand All @@ -53,4 +54,10 @@ class DecodeHistogramDeviceG9Cfl : public DecodeHistogramDevice
PMOS_INTERFACE osInterface);
};

class MediaInterfacesHwInfoDeviceG9Cfl : public MediaInterfacesHwInfoDevice
{
public:
MOS_STATUS Initialize(PLATFORM platform);
};

#endif // __MEDIA_INTERFACES_G9_CFL_H__
Original file line number Diff line number Diff line change
Expand Up @@ -593,3 +593,9 @@ MOS_STATUS DecodeHistogramDeviceG9Kbl::Initialize(
return MOS_STATUS_SUCCESS;
}

#define IP_VERSION_M9_0 0x0900
MOS_STATUS MediaInterfacesHwInfoDeviceG9Kbl::Initialize(PLATFORM platform)
{
m_hwInfo.SetDeviceInfo(IP_VERSION_M9_0, platform.usRevId);
return MOS_STATUS_SUCCESS;
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "media_interfaces_renderhal.h"
#include "media_interfaces_nv12top010.h"
#include "media_interfaces_decode_histogram.h"
#include "media_interfaces_hwinfo_device.h"

#include "mhw_cp_interface.h"
#include "mhw_mi_g9_X.h"
Expand Down Expand Up @@ -266,4 +267,10 @@ class DecodeHistogramDeviceG9Kbl : public DecodeHistogramDevice
PMOS_INTERFACE osInterface);
};

class MediaInterfacesHwInfoDeviceG9Kbl : public MediaInterfacesHwInfoDevice
{
public:
MOS_STATUS Initialize(PLATFORM platform);
};

#endif // __MEDIA_INTERFACES_G9_KBL_H__

0 comments on commit 8117c0f

Please sign in to comment.