Skip to content

Commit e65dff3

Browse files
committed
Gen11 Fixed MOCS table
Change-Id: I8a357fcb00e3aa1414c7cfa7d6e2961d583fdec8 Signed-off-by: drprajap <[email protected]>
1 parent ac68e2c commit e65dff3

15 files changed

+480
-345
lines changed

README.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Building
4040
Install
4141
^^^^^^^
4242
Not a stand alone software component.
43-
GmmLib is build as static library for Intel media driver and Compute runtime for OpenCL
43+
GmmLib is built as dynamic library for Intel media driver and Compute runtime for OpenCL
4444

4545
Supported Platforms
4646
-------------------
@@ -54,6 +54,8 @@ BXT (Broxton) / APL (Apollolake)
5454

5555
CNL (Cannonlake)
5656

57+
ICL (Icelake)
58+
5759

5860
Known Issues and Limitations
5961
----------------------------

Source/GmmLib/CMakeLists.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ cmake_minimum_required(VERSION 3.5)
2424
project(igfx_gmmumd)
2525

2626
# GmmLib Api Version used for so naming
27-
set(GMMLIB_API_MAJOR_VERSION 8)
27+
set(GMMLIB_API_MAJOR_VERSION 9)
2828
set(GMMLIB_API_MINOR_VERSION 0)
2929

3030
if(NOT DEFINED MAJOR_VERSION)
31-
set(MAJOR_VERSION 8)
31+
set(MAJOR_VERSION 9)
3232
endif()
3333

3434
if(NOT DEFINED MINOR_VERSION)
@@ -148,13 +148,13 @@ MESSAGE("IncDir: ${BS_DIR_INC}")
148148

149149
# If '-DGMM_DYNAMIC_MOCS_TABLE=TRUE' (default is FALSE) passed to cmake
150150
# configure command gmmlib will generate MOCS table dynamically depending on
151-
# usage requests (Gen9+). In this case on Linux user responsibility is to
151+
# usage requests (Gen9). In this case on Linux user responsibility is to
152152
# make sure that generated MOCS table is programmed on KMD level.
153153
if (GMM_DYNAMIC_MOCS_TABLE)
154-
MESSAGE("MOCS table: dynamic")
154+
MESSAGE("MOCS table: Dynamic")
155155
add_definitions(-DGMM_DYNAMIC_MOCS_TABLE)
156156
else()
157-
MESSAGE("MOCS table: static")
157+
MESSAGE("MOCS table: Static")
158158
endif()
159159

160160
if(DEFINED UFO_DRIVER_OPTIMIZATION_LEVEL)
@@ -208,7 +208,6 @@ set(HEADERS_
208208
${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmTextureCalc.h
209209
${BS_DIR_GMMLIB}/inc/Internal/Common/GmmCommonInt.h
210210
${BS_DIR_GMMLIB}/inc/Internal/Common/GmmLibInc.h
211-
${BS_DIR_GMMLIB}/inc/Internal/Common/GmmTextureCalc.h
212211
${BS_DIR_GMMLIB}/inc/GmmLib.h
213212
${BS_DIR_GMMLIB}/inc/Internal/Common/GmmLogger.h
214213
)

Source/GmmLib/CachePolicy/GmmCachePolicyResourceUsageDefinitions.h

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_HEAP_INDIRECT_OBJECT )
6969
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_HEAP_INSTRUCTION )
7070
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_HIZ )
7171
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_INDEX_BUFFER )
72+
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_INDEX_BUFFER_L3_COHERENT_UC)
73+
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_INDEX_BUFFER_L3_CACHED)
7274
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_MCS )
7375
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_PUSH_CONSTANT_BUFFER )
7476
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_PULL_CONSTANT_BUFFER )
@@ -97,6 +99,8 @@ DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_TILED_SHADER_RESOURCE )
9799
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_TILED_UAV )
98100

99101
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_VERTEX_BUFFER )
102+
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_VERTEX_BUFFER_L3_COHERENT_UC )
103+
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_VERTEX_BUFFER_L3_CACHED )
100104
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_OGL_WSTN_VERTEX_BUFFER )
101105
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_UAV )
102106
DEFINE_RESOURCE_USAGE( GMM_RESOURCE_USAGE_RENDER_TARGET_AND_SHADER_RESOURCE )

Source/GmmLib/CachePolicy/GmmGen10CachePolicy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ GMM_STATUS GmmLib::GmmGen10CachePolicy::InitCachePolicy()
4040

4141
__GMM_ASSERTPTR(pCachePolicy, GMM_ERROR);
4242

43-
#define DEFINE_CACHE_ELEMENT(usage, llc, ellc, l3, wt, age, lecc_scc, l3_scc, sso, cos, hdcl1) DEFINE_CP_ELEMENT(usage, llc, ellc, l3, wt, age, 0, lecc_scc, l3_scc, 0, sso, cos, hdcl1, 0)
43+
#define DEFINE_CACHE_ELEMENT(usage, llc, ellc, l3, wt, age, lecc_scc, l3_scc, sso, cos, hdcl1) DEFINE_CP_ELEMENT(usage, llc, ellc, l3, wt, age, 0, lecc_scc, l3_scc, 0, sso, cos, hdcl1, 0, 0, 0, 0)
4444
#include "GmmGen10CachePolicy.h"
4545

4646
#define TC_LLC (1)

0 commit comments

Comments
 (0)