/*===================== 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; extern template class MediaFactory; extern template class MediaFactory; extern template class MediaFactory; // Swith to use new media factory template extern template class MediaFactory; extern template class MediaFactory; static bool arlRegisteredVphal = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); static bool arlRegisteredMhwNext = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); static bool arlRegisteredMmd = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); static bool arlRegisteredMcpy = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); static bool arlRegisteredCodecHal = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); static bool arlRegisteredRenderHal = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); #define IP_VERSION_XE_LPM_PLUS_EXT 0x1302 static bool arlRegisteredHwInfo = MediaFactory:: Register((uint32_t)IGFX_ARROWLAKE); MOS_STATUS MediaInterfacesHwInfoDeviceXe_Lpm_Plus_Ext::Initialize(PLATFORM platform) { m_hwInfo.SetDeviceInfo(IP_VERSION_XE_LPM_PLUS_EXT, platform.usRevId); return MOS_STATUS_SUCCESS; }