1 /*===================== begin_copyright_notice ==================================
2
3 * Copyright (c) 2024, Intel Corporation
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22
23 ======================= end_copyright_notice ==================================*/
24 //!
25 //! \file media_render_copy_xe2_hpm_base.cpp
26 //! \brief implementation of xe hardware functions
27 //! \details Render functions
28 //!
29
30 #include "media_render_copy_xe2_hpm_base.h"
31 #include "hal_kerneldll_next.h"
32 #include "media_common_defs.h"
33 #include "media_copy.h"
34 #include "mhw_render_itf.h"
35 #include "mhw_state_heap.h"
36 #include "mos_defs_specific.h"
37 #include "mos_os.h"
38 #include "mos_resource_defs.h"
39 #include "mos_utilities.h"
40 #include "umKmInc/UmKmDmaPerfTimer.h"
41 #include "hal_oca_interface_next.h"
42 #include "media_render_common.h"
43 #include "vpkrnheader.h"
44 #if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
45 #include "igvpkrn_xe2_hpg.h"
46 #endif
47
48 class MhwInterfacesNext;
49
RenderCopyxe2_hpm_Base(PMOS_INTERFACE osInterface,MhwInterfacesNext * mhwInterfaces)50 RenderCopyxe2_hpm_Base::RenderCopyxe2_hpm_Base(PMOS_INTERFACE osInterface, MhwInterfacesNext *mhwInterfaces):
51 RenderCopyStateNext(osInterface, mhwInterfaces)
52 {
53 #if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
54 m_KernelBin = (const void*)IGVPKRN_XE2_HPG;
55 m_KernelBinSize = IGVPKRN_XE2_HPG_SIZE;
56 #else
57 m_KernelBin = nullptr;
58 m_KernelBinSize = 0;
59 #endif
60 }
61
~RenderCopyxe2_hpm_Base()62 RenderCopyxe2_hpm_Base:: ~RenderCopyxe2_hpm_Base()
63 {
64 }
65
66