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_lpm.cpp
26 //! \brief      implementation of xe hardware functions
27 //! \details    Render functions
28 //!
29 
30 #include "media_render_copy_xe2_lpm.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 
45 #if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
46 #include "igvpkrn_xe2_hpg.h"
47 #endif
48 
49 class MhwInterfacesNext;
50 
RenderCopyxe2_Lpm(PMOS_INTERFACE osInterface,MhwInterfacesNext * mhwInterfaces)51 RenderCopyxe2_Lpm::RenderCopyxe2_Lpm(PMOS_INTERFACE  osInterface, MhwInterfacesNext *mhwInterfaces):
52     RenderCopyStateNext(osInterface, mhwInterfaces)
53 {
54 #if defined(ENABLE_KERNELS) && !defined(_FULL_OPEN_SOURCE)
55     m_KernelBin     = (const void*)IGVPKRN_XE2_HPG;
56     m_KernelBinSize = IGVPKRN_XE2_HPG_SIZE;
57 #else
58     m_KernelBin     = nullptr;
59     m_KernelBinSize = 0;
60 #endif
61 }
62 
~RenderCopyxe2_Lpm()63 RenderCopyxe2_Lpm:: ~RenderCopyxe2_Lpm()
64 {
65 }
66 
67