-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Media Common] ARL-S Open Source Upstream
This patch is for ARL-S open source upstream. 1. Move ARL-S to open source 2. Updated ARL and MTL DeviceIDs to keep align with specification and others minor change
- Loading branch information
1 parent
87146e8
commit e16c7ab
Showing
11 changed files
with
335 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
media_softlet/media_interface/media_interfaces_arl/media_interfaces_arl.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/*===================== begin_copyright_notice ================================== | ||
# Copyright (c) 2023, Intel Corporation | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
# OTHER DEALINGS IN THE SOFTWARE. | ||
======================= end_copyright_notice ==================================*/ | ||
//! | ||
//! \file media_interfaces_arl.cpp | ||
|
||
//! \brief Helps with ARL factory creation. | ||
//! | ||
|
||
#include "media_interfaces_arl.h" | ||
|
||
#include "codechal_common.h" | ||
#include "codechal_debug.h" | ||
|
||
#include "vp_pipeline_adapter_xe_lpm_plus.h" | ||
#include "vp_platform_interface_xe_lpm_plus.h" | ||
#include "mhw_mi_xe_lpm_plus_base_next_impl.h" | ||
#include "mhw_blt_xe_lpm_plus_base_next_impl.h" | ||
#include "mhw_sfc_xe_lpm_plus_base_next_impl.h" | ||
#include "mhw_vebox_xe_lpm_plus_base_next_impl.h" | ||
#include "mhw_render_xe_hpg_impl.h" | ||
|
||
#if defined(ENABLE_KERNELS) | ||
#include "igvpkrn_xe_hpg.h" | ||
#include "igvpkrn_xe_hpg_cmfcpatch.h" | ||
#if !defined(_FULL_OPEN_SOURCE) | ||
#include "igvpkrn_isa_xe_hpg.h" | ||
#endif | ||
#endif | ||
|
||
using namespace mhw::vdbox::avp::xe_lpm_plus_base; | ||
using namespace mhw::vdbox::vdenc::xe_lpm_plus_base; | ||
using namespace mhw::vdbox::huc::xe_lpm_plus_base; | ||
using namespace mhw::vdbox::mfx::xe_lpm_plus_base; | ||
|
||
extern template class MediaFactory<uint32_t, CodechalDeviceNext>; | ||
extern template class MediaFactory<uint32_t, VphalDevice>; | ||
extern template class MediaFactory<uint32_t, RenderHalDevice>; | ||
extern template class MediaFactory<uint32_t, MediaInterfacesHwInfoDevice>; | ||
|
||
// Swith to use new media factory template | ||
extern template class MediaFactory<uint32_t, MhwInterfacesNext>; | ||
extern template class MediaFactory<uint32_t, MmdDeviceNext>; | ||
|
||
static bool arlRegisteredVphal = | ||
MediaFactory<uint32_t, VphalDevice>:: | ||
Register<VphalInterfacesXe_Lpm_Plus>((uint32_t)IGFX_ARROWLAKE); | ||
|
||
static bool arlRegisteredMhwNext = | ||
MediaFactory<uint32_t, MhwInterfacesNext>:: | ||
Register<MhwInterfacesXe_Lpm_Plus_Next>((uint32_t)IGFX_ARROWLAKE); | ||
|
||
#ifdef _MMC_SUPPORTED | ||
static bool arlRegisteredMmd = | ||
MediaFactory<uint32_t, MmdDeviceNext>:: | ||
Register<MmdDeviceXe_Lpm_Plus_Next>((uint32_t)IGFX_ARROWLAKE); | ||
#endif | ||
|
||
static bool arlRegisteredMcpy = | ||
MediaFactory<uint32_t, McpyDeviceNext>:: | ||
Register<McpyDeviceXe_Lpm_Plus>((uint32_t)IGFX_ARROWLAKE); | ||
|
||
static bool arlRegisteredCodecHal = | ||
MediaFactory<uint32_t, CodechalDeviceNext>:: | ||
Register<CodechalInterfacesXe_Lpm_Plus>((uint32_t)IGFX_ARROWLAKE); | ||
|
||
static bool arlRegisteredRenderHal = | ||
MediaFactory<uint32_t, RenderHalDevice>:: | ||
Register<RenderHalInterfacesXe_Lpg>((uint32_t)IGFX_ARROWLAKE); | ||
|
||
static bool arlRegisteredHwInfo = | ||
MediaFactory<uint32_t, MediaInterfacesHwInfoDevice>:: | ||
Register<MediaInterfacesHwInfoDeviceXe_Lpm_Plus>((uint32_t)IGFX_ARROWLAKE); | ||
|
118 changes: 118 additions & 0 deletions
118
media_softlet/media_interface/media_interfaces_arl/media_interfaces_arl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/*===================== begin_copyright_notice ================================== | ||
# Copyright (c) 2023, Intel Corporation | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
# OTHER DEALINGS IN THE SOFTWARE. | ||
======================= end_copyright_notice ==================================*/ | ||
//! | ||
//! \file media_interfaces_arl.h | ||
//! \brief All interfaces used for ARL that require factory creation | ||
//! | ||
|
||
#ifndef __MEDIA_INTERFACES_ARL_H__ | ||
#define __MEDIA_INTERFACES_ARL_H__ | ||
|
||
#include "media_interfaces_mtl.h" | ||
#include "media_interfaces_mhw_next.h" | ||
#include "media_interfaces_codechal_next.h" | ||
#include "media_interfaces_mcpy_next.h" | ||
#include "media_interfaces_mmd_next.h" | ||
|
||
#include "media_interfaces_vphal.h" | ||
#include "media_interfaces_renderhal.h" | ||
#include "media_interfaces_hwinfo_device.h" | ||
|
||
#include "mhw_cp_interface.h" | ||
|
||
#include "mhw_vdbox_mfx_impl_xe_lpm_plus.h" | ||
|
||
#include "mhw_vdbox_avp_impl_xe_lpm_plus.h" | ||
|
||
#include "mhw_vdbox_huc_impl_xe_lpm_plus.h" | ||
|
||
#include "mhw_vdbox_hcp_impl_xe_lpm_plus.h" | ||
|
||
#include "mhw_vdbox_vdenc_impl_xe_lpm_plus.h" | ||
|
||
#include "media_mem_decompress_xe_lpm_plus_base.h" | ||
#include "media_copy_xe_lpm_plus_base.h" | ||
#include "mhw_state_heap_xe_hpg.h" | ||
#include "codec_hw_xe_lpm_plus_base.h" | ||
|
||
#ifdef _AVC_DECODE_SUPPORTED | ||
#include "decode_avc_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _HEVC_DECODE_SUPPORTED | ||
#include "decode_hevc_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _JPEG_DECODE_SUPPORTED | ||
#include "decode_jpeg_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _MPEG2_DECODE_SUPPORTED | ||
#include "decode_mpeg2_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _VP9_DECODE_SUPPORTED | ||
#include "decode_vp9_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _VP8_DECODE_SUPPORTED | ||
#include "decode_vp8_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _AV1_DECODE_SUPPORTED | ||
#include "decode_av1_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _JPEG_ENCODE_SUPPORTED | ||
#include "encode_jpeg_pipeline_adapter_xe_lpm_plus_base.h" | ||
#endif | ||
|
||
#ifdef _HEVC_ENCODE_VDENC_SUPPORTED | ||
#include "encode_hevc_vdenc_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _AV1_ENCODE_VDENC_SUPPORTED | ||
#include "encode_av1_vdenc_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#ifdef _AVC_ENCODE_VDENC_SUPPORTED | ||
#include "encode_avc_vdenc_pipeline_adapter_xe_lpm_plus_base.h" | ||
#endif | ||
|
||
#ifdef _VP9_ENCODE_VDENC_SUPPORTED | ||
#ifndef _APOGEIOS_SUPPORTED | ||
#ifdef _MEDIA_RESERVED | ||
#include "codechal_vdenc_vp9_xe_lpm_plus.h" | ||
#endif | ||
#endif | ||
#include "encode_vp9_vdenc_pipeline_adapter_xe_lpm_plus.h" | ||
#endif | ||
|
||
#include "renderhal_xe_hpg_next.h" | ||
|
||
|
||
#include "decode_scalability_singlepipe_next.h" | ||
#include "decode_scalability_multipipe_next.h" | ||
|
||
#endif // __MEDIA_INTERFACES_ARL_H__ |
Oops, something went wrong.