Skip to content

Commit

Permalink
[Media Common] [VP] Fix gcc-10-mtl-off build error
Browse files Browse the repository at this point in the history
Fix gcc-10-mtl-off build error
  • Loading branch information
Effieyu0 authored and intel-mediadev committed Jul 30, 2024
1 parent ec37ce0 commit 8b90baf
Show file tree
Hide file tree
Showing 20 changed files with 70 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1025,4 +1025,4 @@ MEDIA_CLASS_DEFINE_END(mhw__vdbox__huc__xe2_lpm_base__xe2_lpm__Cmd)

#pragma pack()

#endif // __MHW_VDBOX_HUC_HWCMD_XE_LPM_PLUS_H__
#endif // __MHW_VDBOX_HUC_HWCMD_XE2_LPM_H__
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
//!
//! \file mhw_vdbox_huc_impl_xe2_lpm.h
//! \brief MHW VDBOX HUC interface common base for Xe_LPM_plus
//! \brief MHW VDBOX HUC interface common base for Xe2_LPM
//! \details
//!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef __DECODE_AVC_PACKET_XE2_LPM_BASE_H__
#define __DECODE_AVC_PACKET_XE2_LPM_BASE_H__

#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"
#include "codec_hw_xe2_lpm_base.h"
#include "decode_avc_packet.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//!
#include "decode_avc_picture_packet_xe2_lpm_base.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

#include "decode_avc_picture_packet.h"
#include "codec_hw_xe2_lpm_base.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"
#include "decode_downsampling_packet.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
#include "decode_status_report_defs.h"
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "mhw_vdbox_vdenc_hwcmd_xe_lpm_plus.h"
#include "decode_hevc_picture_packet_xe2_lpm_base.h"
#include "mhw_mi_hwcmd_xe2_lpm_base_next.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "decode_status_report_defs.h"
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"
#include "mhw_mi_hwcmd_xe2_lpm_base_next.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "decode_status_report_defs.h"
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"
#include "mhw_mi_hwcmd_xe2_lpm_base_next.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "decode_status_report_defs.h"
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"
#include "mhw_mi_hwcmd_xe2_lpm_base_next.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#include "decode_huc_s2l_packet_xe2_lpm_base.h"
#include "mhw_vdbox.h"
#include "decode_resource_auto_lock.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"
#include "mhw_mi_hwcmd_xe2_lpm_base_next.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ MEDIA_CLASS_DEFINE_END(decode__JpegDecodePktXe2_Lpm_Base)

}

#endif //__DECODE_JPEG_PACKET_XE_LPM_PLUS_H__
#endif //__DECODE_JPEG_PACKET_XE2_LPM_H__
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "decode_vp9_picture_packet_xe2_lpm_base.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#include "decode_status_report_defs.h"
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;
namespace decode
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#include "decode_status_report_defs.h"
#include "decode_resource_auto_lock.h"
#include "hal_oca_interface_next.h"
#include "mhw_vdbox_xe_lpm_plus_base.h"
#include "mhw_vdbox_xe2_lpm_base.h"

using namespace mhw::vdbox::xe_lpm_plus_base;
using namespace mhw::vdbox::xe2_lpm_base;

namespace decode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ class DecodeVp9PipelineAdapterXe2_Lpm_Base : public DecodePipelineAdapter
MEDIA_CLASS_DEFINE_END(DecodeVp9PipelineAdapterXe2_Lpm_Base)
};

#endif // !__DECODE_VP9_PIPELINE_ADAPTER_XE_LPM_PLUS_BASE_H__
#endif // !__DECODE_VP9_PIPELINE_ADAPTER_XE2_LPM_BASE_H__
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "mhw_mi_hwcmd_xe2_lpm_base_next.h"
#include "mhw_mi_itf.h"
#include "mhw_impl.h"
#include "mhw_mmio_xe_lpm_plus.h"
#include "mhw_mmio_xe2_lpm_base.h"

#define MHW_MI_TEE_DEFAULT_WATCHDOG_THRESHOLD_IN_MS 200

Expand Down Expand Up @@ -317,8 +317,8 @@ class Impl : public mi::Impl<Cmd>
break;
// TEE
case MOS_GPU_CONTEXT_TEE:
MediaResetParam.watchdogCountCtrlOffset = WATCHDOG_COUNT_CTRL_OFFSET_TEECS_XE_LPM_PLUS;
MediaResetParam.watchdogCountThresholdOffset = WATCHDOG_COUNT_THRESTHOLD_OFFSET_TEECS_XE_LPM_PLUS;
MediaResetParam.watchdogCountCtrlOffset = WATCHDOG_COUNT_CTRL_OFFSET_TEECS_XE2_LPM_BASE ;
MediaResetParam.watchdogCountThresholdOffset = WATCHDOG_COUNT_THRESTHOLD_OFFSET_TEECS_XE2_LPM_BASE ;
break;
// Default
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
#define WATCHDOG_COUNT_CTRL_OFFSET_VECS_XE2_LPM_BASE 0x1C8178
#define WATCHDOG_COUNT_THRESTHOLD_OFFSET_VECS_XE2_LPM_BASE 0x1C817C

#define WATCHDOG_COUNT_CTRL_OFFSET_TEECS_XE2_LPM_BASE 0x11A178
#define WATCHDOG_COUNT_THRESTHOLD_OFFSET_TEECS_XE2_LPM_BASE 0x11A17C

//VDBOX HCP
#define WATCHDOG_COUNT_CTRL_OFFSET_INIT_XE2_LPM_BASE 0x1C0178
#define WATCHDOG_COUNT_THRESTHOLD_OFFSET_INIT_XE2_LPM_BASE 0x1C017C
Expand Down Expand Up @@ -146,12 +149,44 @@
#define M_MMIO_MEDIA_HIGH_OFFSET 0x200000 //!< High bound of VDBox and VEBox MMIO offset

//Render
#define M_MMIO_RCS_AUX_TABLE_BASE_LOW 0x4200
#define M_MMIO_RCS_AUX_TABLE_BASE_HIGH 0x4204
#define M_MMIO_RCS_AUX_TABLE_INVALIDATE 0x4208
#define M_MMIO_RCS_HW_FE_REMAP_RANGE_BEGIN 0x2000
#define M_MMIO_RCS_HW_FE_REMAP_RANGE_END 0x27FF
#define M_MMIO_RCS_AUX_TBL_REMAP_RANGE_BEGIN 0x4200
#define M_MMIO_RCS_AUX_TBL_REMAP_RANGE_END 0x420F
#define M_MMIO_RCS_TRTT_REMAP_RANGE_BEGIN 0x4400
#define M_MMIO_RCS_TRTT_REMAP_RANGE_END 0x441F

#define M_MMIO_MEDIA_REG_BASE 0X380000//!<Media Engine Base

//VD
#define M_MMIO_VD0_AUX_TABLE_BASE_LOW 0x4210
#define M_MMIO_VD0_AUX_TABLE_BASE_HIGH 0x4214
#define M_MMIO_VD0_AUX_TABLE_INVALIDATE 0x4218
#define M_MMIO_VD1_AUX_TABLE_BASE_LOW 0x4220
#define M_MMIO_VD1_AUX_TABLE_BASE_HIGH 0x4224
#define M_MMIO_VD1_AUX_TABLE_INVALIDATE 0x4228
#define M_MMIO_VD2_AUX_TABLE_BASE_LOW 0x4290
#define M_MMIO_VD2_AUX_TABLE_BASE_HIGH 0x4294
#define M_MMIO_VD2_AUX_TABLE_INVALIDATE 0x4298
#define M_MMIO_VD3_AUX_TABLE_BASE_LOW 0x42A0
#define M_MMIO_VD3_AUX_TABLE_BASE_HIGH 0x42A4
#define M_MMIO_VD3_AUX_TABLE_INVALIDATE 0x42A8

//VE
#define M_MMIO_VE0_AUX_TABLE_BASE_LOW 0x4230
#define M_MMIO_VE0_AUX_TABLE_BASE_HIGH 0x4234
#define M_MMIO_VE0_AUX_TABLE_INVALIDATE 0x4238
#define M_MMIO_VE1_AUX_TABLE_BASE_LOW 0x42B0
#define M_MMIO_VE1_AUX_TABLE_BASE_HIGH 0x42B4
#define M_MMIO_VE1_AUX_TABLE_INVALIDATE 0x42B8

//Compute
#define M_MMIO_CCS0_AUX_TABLE_BASE_LOW 0x42C0
#define M_MMIO_CCS0_AUX_TABLE_BASE_HIGH 0x42C4
#define M_MMIO_CCS0_AUX_TABLE_INVALIDATE 0x42C8
#define M_MMIO_CCS0_HW_FRONT_END_BASE_BEGIN 0x1A000
#define M_MMIO_CCS0_HW_FRONT_END_BASE_END 0x1A7FF
#define M_MMIO_CCS1_HW_FRONT_END_BASE_BEGIN 0x1C000
Expand All @@ -173,4 +208,8 @@

#define M_CCS_HW_FRONT_END_MMIO_MASK 0x7FF

//Bilitter engine
#define M_MMIO_BLT_AUX_TABLE_BASE_LOW 0x4240
#define M_MMIO_BLT_AUX_TABLE_BASE_HIGH 0x4244

#endif //__MHW_MMIO_XE2_LPM_BASE_H__
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class BaseImpl : public hcp::Impl<cmd_t>
}
MEDIA_CLASS_DEFINE_END(mhw__vdbox__hcp__xe2_lpm_base__BaseImpl)
};
} // namespace xe_lpm_plus_base
} // namespace xe2_lpm_base
} // namespace hcp
} // namespace vdbox
} // namespace mhw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ set(SOFTLET_COMMON_HEADERS_
${TMP_HEADERS_}
)

source_group( "SharedNext\\Xe_LPM_plus_base\\shared\\MediaCopy" FILES ${TMP_SOURCES_} ${TMP_HEADERS_} )
source_group( "SharedNext\\Xe2_LPM_base\\shared\\MediaCopy" FILES ${TMP_SOURCES_} ${TMP_HEADERS_} )

set(SOFTLET_COMMON_PRIVATE_INCLUDE_DIRS_
${SOFTLET_COMMON_PRIVATE_INCLUDE_DIRS_}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#include "media_interfaces_mcpy_next.h"

// use vdenc from Xe_LPM_plus instead of Xe2_LPM
#ifdef _MEDIA_RESERVED
#include "mhw_vdbox_vdenc_impl_xe_lpm_plus.h"
#endif

#ifndef _FULL_OPEN_SOURCE
#include "igvpkrn_xe2_hpg.h"
Expand Down

0 comments on commit 8b90baf

Please sign in to comment.