1 /*
2 * Copyright (c) 2024, 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     vp_surface_cache_settings.h
24 //! \brief    vp surfaces cache settings
25 //! \details  Detaied vp cache settings
26 //!
27 #ifndef __VP_SURFACE_CACHE_SETTINGS_H__
28 #define __VP_SURFACE_CACHE_SETTINGS_H__
29 /****************************************************************************\
30   Cache Setting Table for Common Surfaces
31 
32 MOS_CACHE_OBJECT(MOS_COMPONENT _componentId, uint32_t _surfaceType, bool _isHeap, bool _isOutput, ENGINE_TYPE _engineType), MOS_CACHE_ELEMENT(MOS_HW_RESOURCE_DEF _mocsUsageType, MOS_HW_RESOURCE_DEF _patIndex)
33       patIndex ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------o
34       mocsUsageType -----------------------------------------------------------------------------------------------------------------------------------------------o                                               |
35       engineType --------------------------------------------------------------------------------------------------------o                                         |                                               |
36       isOutput -----------------------------------------------------------------------------------------------o          |                                         |                                               |
37       isHeap ------------------------------------------------------------------------------------------o      |          |                                         |                                               |
38       surfaceType --------------------------------------o                                              |      |          |                                         |                                               |
39       componentId        |                              |                                              |      |          |                                         |                                               |
40 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
41 {MOS_CACHE_OBJECT(COMPONENT_VPCommon, (uint32_t)SUFACE_TYPE_ASSIGNED(vp::SurfaceTypeRenderOutput), false, true, RENDER_ENGINE).value, MOS_CACHE_ELEMENT(MOS_HW_RESOURCE_USAGE_VP_INTERNAL_READ_WRITE_RENDER, MOS_HW_RESOURCE_USAGE_VP_INTERNAL_READ_WRITE_RENDER)},
42 {MOS_CACHE_OBJECT(COMPONENT_VPCommon, (uint32_t)SUFACE_TYPE_ASSIGNED(vp::SurfaceTypeRenderOutput), false, false, RENDER_ENGINE).value, MOS_CACHE_ELEMENT(MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER, MOS_HW_RESOURCE_USAGE_VP_INTERNAL_READ_WRITE_RENDER)},
43 {MOS_CACHE_OBJECT(COMPONENT_VPCommon, (uint32_t)ISH_HEAP, true, false, RENDER_ENGINE).value, MOS_CACHE_ELEMENT(MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER, MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER)},
44 {MOS_CACHE_OBJECT(COMPONENT_VPCommon, (uint32_t)GSH_HEAP, true, false, RENDER_ENGINE).value, MOS_CACHE_ELEMENT(MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER, MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER)},
45 {MOS_CACHE_OBJECT(COMPONENT_VPCommon, (uint32_t)GSH_HEAP, true, false, RENDER_ENGINE).value, MOS_CACHE_ELEMENT(MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER, MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_RENDER)},
46 #endif  // __VP_SURFACE_CACHE_SETTINGS_H__