Add Gmm interface for memory config

Increment Dll Version

Change-Id: Ica11a2c7703eb1edf02eaf7cd758fda310f9bd17
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
This commit is contained in:
drprajap 2018-11-19 23:03:37 -08:00 committed by Prajapati, Dimpalben R
parent 5cd8dca50b
commit fffd5a579e
3 changed files with 5 additions and 4 deletions

View File

@ -24,11 +24,11 @@ cmake_minimum_required(VERSION 3.5)
project(igfx_gmmumd)
# GmmLib Api Version used for so naming
set(GMMLIB_API_MAJOR_VERSION 3)
set(GMMLIB_API_MAJOR_VERSION 4)
set(GMMLIB_API_MINOR_VERSION 0)
if(NOT DEFINED MAJOR_VERSION)
set(MAJOR_VERSION 3)
set(MAJOR_VERSION 4)
endif()
if(NOT DEFINED MINOR_VERSION)

View File

@ -29,7 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#if defined(_WIN64)
#define GMM_UMD_DLL "igdgmm64.dll"
#else
#define GMM_UMD_DLL "libigdgmm.so.3"
#define GMM_UMD_DLL "libigdgmm.so.4"
#endif
#else
#define GMM_ENTRY_NAME "_OpenGmm@4"
@ -40,6 +40,6 @@ OTHER DEALINGS IN THE SOFTWARE.
#if defined(_WIN32)
#define GMM_UMD_DLL "igdgmm32.dll"
#else
#define GMM_UMD_DLL "libigdgmm.so.3"
#define GMM_UMD_DLL "libigdgmm.so.4"
#endif
#endif

View File

@ -108,6 +108,7 @@ typedef struct GMM_RESOURCE_FLAG_REC
uint32_t LayoutBelow : 1; // Indicates the orientation of MIP data in the buffer. This is the surviving option and may be inferred as the default.
uint32_t LayoutMono : 1; // Legacy, deprecated MIP layout. Used for internal debugging.
uint32_t LayoutRight : 1; // Legacy, deprecated MIP layout.
uint32_t LocalOnly : 1;
uint32_t Linear : 1; // (non-)tiling preference for the allocation. (lowest priority) Y>X>W>L. See GmmLib::GmmTextureCalc::SetTileMode()
uint32_t MediaCompressed : 1;
uint32_t NoOptimizationPadding : 1; // don't swell size for sake of 64KB pages - FtrWddm2_1_64kbPages