| 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 |
#pragma once |
| 24 |
#ifdef __cplusplus |
| 25 |
#include "GmmGen7TextureCalc.h" |
| 26 |
///////////////////////////////////////////////////////////////////////////////////// |
| 27 |
/// @file GmmGen8TextureCalc.h |
| 28 |
/// @brief This file contains the functions and members definations for texture alloc- |
| 29 |
/// ation on all Gen8 platforms. |
| 30 |
///////////////////////////////////////////////////////////////////////////////////// |
| 31 |
namespace GmmLib |
| 32 |
{ |
| 33 |
///////////////////////////////////////////////////////////////////////// |
| 34 |
/// Contains texture calc functions and members for Gen8 platforms. |
| 35 |
/// This class is derived from the base GmmGen7TextureCalc class so clients |
| 36 |
/// shouldn't have to ever interact with this class directly. |
| 37 |
///////////////////////////////////////////////////////////////////////// |
| 38 |
class NON_PAGED_SECTION GmmGen8TextureCalc : |
| 39 |
public GmmGen7TextureCalc |
| 40 |
{ |
| 41 |
private: |
| 42 |
|
| 43 |
protected: |
| 44 |
/* Function prototypes */ |
| 45 |
virtual void Fill2DTexOffsetAddress( |
| 46 |
GMM_TEXTURE_INFO *pTexInfo); |
| 47 |
|
| 48 |
public: |
| 49 |
/* Constructors */ |
| 50 |
|
| 51 |
GmmGen8TextureCalc(Context *pGmmLibContext) |
| 52 |
: GmmGen7TextureCalc(pGmmLibContext) |
| 53 |
{ |
| 54 |
|
| 55 |
} |
| 56 |
|
| 57 |
~GmmGen8TextureCalc() |
| 58 |
{ |
| 59 |
|
| 60 |
} |
| 61 |
|
| 62 |
/* Function prototypes */ |
| 63 |
virtual GMM_STATUS GMM_STDCALL FillTex1D(GMM_TEXTURE_INFO *pTexInfo, |
| 64 |
__GMM_BUFFER_TYPE *pRestrictions); |
| 65 |
|
| 66 |
virtual GMM_STATUS GMM_STDCALL FillTex2D(GMM_TEXTURE_INFO *pTexInfo, |
| 67 |
__GMM_BUFFER_TYPE *pRestrictions); |
| 68 |
|
| 69 |
virtual GMM_STATUS GMM_STDCALL FillTexCube(GMM_TEXTURE_INFO *pTexInfo, |
| 70 |
__GMM_BUFFER_TYPE *pRestrictions); |
| 71 |
virtual GMM_STATUS GMM_STDCALL MSAACCSUsage(GMM_TEXTURE_INFO *pTexInfo); |
| 72 |
|
| 73 |
/* inline functions */ |
| 74 |
}; |
| 75 |
} |
| 76 |
#endif // #ifdef __cplusplus |