Debian Codegraph @

media_driver/media_softlet/agnostic/g12/g12_1/renderhal/renderhal_g12_1.h

raw
1 /*
2 * Copyright (c) 2011-2021, Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22 //!
23 //! \file renderhal_g12_1.h
24 //! \brief header file of Gen12 DG1 hardware functions
25 //! \details Gen12 hardware functions declare
26 //!
27 #ifndef __RENDERHAL_G12_1_H__
28 #define __RENDERHAL_G12_1_H__
29
30 #include "renderhal_g12_base.h"
31 #include "media_class_trace.h"
32 #include "mos_defs.h"
33 #include "renderhal.h"
34
35 //! \brief for Gen12LP/DG1 VP and MDF
36 //! SLM URB DC RO Rest/L3 Client Pool
37 //! 0 96(fixed) 0 0 2048 (KB chunks based on GT2)
38 #define RENDERHAL_L3_CACHE_CONFIG_CNTLREG_VALUE_G12LP_DG1_RENDERHAL (0x00000200)
39
40 class XRenderHal_Interface_G12_1 : public XRenderHal_Interface_G12_Base
41 {
42 public:
43 XRenderHal_Interface_G12_1(): XRenderHal_Interface_G12_Base()
44 {
45
46 }
47
48 virtual ~XRenderHal_Interface_G12_1() {}
49
50 //!
51 //! \brief Enables L3 cacheing flag and sets related registers/values
52 //! \param PRENDERHAL_INTERFACE pRenderHal
53 //! [in] Pointer to Hardware Interface
54 //! \param pCacheSettings
55 //! [in] L3 Cache Configurations
56 //! \return MOS_STATUS
57 //! MOS_STATUS_SUCCESS if success, else fail reason
58 //!
59 virtual MOS_STATUS EnableL3Caching(
60 PRENDERHAL_INTERFACE pRenderHal,
61 PRENDERHAL_L3_CACHE_SETTINGS pCacheSettings);
62
63 //! \brief Set L3 cache override config parameters
64 //! \param [in] pRenderHal
65 //! Pointer to RenderHal Interface Structure
66 //! \param [in,out] pCacheSettings
67 //! Pointer to pCacheSettings
68 //! \param [in] bEnableSLM
69 //! Flag to enable SLM
70 //! \return MOS_STATUS
71 //! MOS_STATUS_SUCCESS if success. Error code otherwise
72 //!
73 virtual MOS_STATUS SetCacheOverrideParams(
74 PRENDERHAL_INTERFACE pRenderHal,
75 PRENDERHAL_L3_CACHE_SETTINGS pCacheSettings,
76 bool bEnableSLM);
77 MEDIA_CLASS_DEFINE_END(XRenderHal_Interface_G12_1)
78 };
79
80 #endif // __RENDERHAL_G12_1_H__