| 1 |
/* |
| 2 |
* Copyright (c) 2014-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 codechal_hw_g11_X.h |
| 24 |
//! \brief This modules implements HW interface layer to be used on Gen11 platforms on all operating systems/DDIs, across CODECHAL components. |
| 25 |
//! |
| 26 |
#ifndef __CODECHAL_HW_G11_X_H__ |
| 27 |
#define __CODECHAL_HW_G11_X_H__ |
| 28 |
|
| 29 |
#include "codechal_hw.h" |
| 30 |
#include "mhw_mi_hwcmd_g11_X.h" |
| 31 |
#include "mhw_render_hwcmd_g11_X.h" |
| 32 |
|
| 33 |
//! |
| 34 |
//! \class CodechalHwInterfaceG11 |
| 35 |
//! \brief Codechal hw interface Gen11 |
| 36 |
/*! |
| 37 |
This class defines the interfaces for hardware dependent settings and functions used in Codechal for Gen11 platforms |
| 38 |
*/ |
| 39 |
class CodechalHwInterfaceG11 : public CodechalHwInterface |
| 40 |
{ |
| 41 |
protected: |
| 42 |
static const CODECHAL_SSEU_SETTING m_defaultSsEuLutG11[CODECHAL_NUM_MEDIA_STATES]; |
| 43 |
|
| 44 |
public: |
| 45 |
//! |
| 46 |
//! \brief Constructor |
| 47 |
//! |
| 48 |
CodechalHwInterfaceG11( |
| 49 |
PMOS_INTERFACE osInterface, |
| 50 |
CODECHAL_FUNCTION codecFunction, |
| 51 |
MhwInterfaces *mhwInterfaces); |
| 52 |
|
| 53 |
//! |
| 54 |
//! \brief Destructor |
| 55 |
//! |
| 56 |
virtual ~CodechalHwInterfaceG11() {} |
| 57 |
|
| 58 |
MOS_STATUS InitL3CacheSettings() override; |
| 59 |
|
| 60 |
MOS_STATUS GetStreamoutCommandSize( |
| 61 |
uint32_t *commandsSize, |
| 62 |
uint32_t *patchListSize) override; |
| 63 |
}; |
| 64 |
|
| 65 |
#endif // __CODECHAL_HW_G11_X_H__ |