| 1 |
/* |
| 2 |
* Copyright (c) 2017, 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 vphal_renderer_g9.h |
| 24 |
//! \brief The header file of VPHAL top level rendering component |
| 25 |
//! \details The top renderer is responsible for coordinating the sequence of calls to low level renderers, e.g. DNDI or Comp |
| 26 |
//! |
| 27 |
#ifndef __VPHAL_RENDERER_G9_H__ |
| 28 |
#define __VPHAL_RENDERER_G9_H__ |
| 29 |
|
| 30 |
#include "vphal_renderer.h" |
| 31 |
|
| 32 |
const VphalSseuSetting VpHalDefaultSSEUTableG9[baseKernelMaxNumID] = |
| 33 |
{ |
| 34 |
// Slice Sub-Slice EU Rsvd(freq) |
| 35 |
{ 1, 3, 8, 0 }, // COMBINED_FC_KERNEL Default |
| 36 |
|
| 37 |
// 2 VEBOX kernels |
| 38 |
{ 1, 3, 8, 0 }, // VEBOX_SECUREBLOCKCOPY_KERNEL, |
| 39 |
{ 1, 3, 8, 0 }, // VEBOX_UPDATEDNSTATE_KERNEL, |
| 40 |
}; |
| 41 |
|
| 42 |
//! |
| 43 |
//! \brief VPHAL renderer Gen9 class |
| 44 |
//! |
| 45 |
class VphalRendererG9 : public VphalRenderer |
| 46 |
{ |
| 47 |
public: |
| 48 |
//! |
| 49 |
//! \brief VphalRendererG9 constructor |
| 50 |
//! \details Based on the HW and OS info, initialize the renderer interfaces |
| 51 |
//! \param [in,out] pRenderHal |
| 52 |
//! Pointer to RenderHal Interface Structure |
| 53 |
//! \param [in,out] pStatus |
| 54 |
//! Pointer to the MOS_STATUS flag. |
| 55 |
//! Will assign this flag to MOS_STATUS_SUCCESS if successful, otherwise failed |
| 56 |
//! |
| 57 |
VphalRendererG9( |
| 58 |
PRENDERHAL_INTERFACE pRenderHal, |
| 59 |
MOS_STATUS *pStatus) : |
| 60 |
VphalRenderer(pRenderHal, pStatus) |
| 61 |
{ |
| 62 |
// Set SSEUTable |
| 63 |
pRenderHal->sseuTable = VpHalDefaultSSEUTableG9; |
| 64 |
} |
| 65 |
|
| 66 |
//! |
| 67 |
//! \brief VPHAL renderer destructor |
| 68 |
//! \details Destory the resources allocated for the renderers |
| 69 |
//! including VEBOX and Composite. |
| 70 |
//! |
| 71 |
virtual ~VphalRendererG9() |
| 72 |
{ |
| 73 |
} |
| 74 |
|
| 75 |
//! |
| 76 |
//! \brief Get Renderer Cache Settings |
| 77 |
//! \details Get cache settings for various VP features |
| 78 |
//! \param [in] pOsInterface |
| 79 |
//! OS Interface |
| 80 |
//! \param [in] pPlatform |
| 81 |
//! Platform Pointer |
| 82 |
//! \param [in] pSkuTable |
| 83 |
//! SKU feature table |
| 84 |
//! \param [in,out] pSettings |
| 85 |
//! Pointer to Render Cache Control Settings |
| 86 |
//! \return void |
| 87 |
//! |
| 88 |
virtual void GetCacheCntl( |
| 89 |
PMOS_INTERFACE pOsInterface, |
| 90 |
PLATFORM *pPlatform, |
| 91 |
MEDIA_FEATURE_TABLE *pSkuTable, |
| 92 |
PVPHAL_RENDER_CACHE_CNTL pSettings); |
| 93 |
|
| 94 |
//! |
| 95 |
//! \brief Allocate render components |
| 96 |
//! \details Allocate render components |
| 97 |
//! \param [in] pVeboxInterface |
| 98 |
//! Pointer to Vebox Interface Structure |
| 99 |
//! \param [in] pSfcInterface |
| 100 |
//! Pointer to SFC interface Structure |
| 101 |
//! \return MOS_STATUS |
| 102 |
//! Return MOS_STATUS_SUCCESS if successful, otherwise failed |
| 103 |
//! |
| 104 |
virtual MOS_STATUS AllocateRenderComponents( |
| 105 |
PMHW_VEBOX_INTERFACE pVeboxInterface, |
| 106 |
PMHW_SFC_INTERFACE pSfcInterface); |
| 107 |
|
| 108 |
//! |
| 109 |
//! \brief Initialize the KDLL parameters |
| 110 |
//! \details Initialize the KDLL parameters |
| 111 |
//! \return MOS_STATUS |
| 112 |
//! |
| 113 |
virtual MOS_STATUS InitKdllParam(); |
| 114 |
}; |
| 115 |
|
| 116 |
#endif // __VPHAL_RENDER_G9_H__ |