Skip to content

Commit

Permalink
Initialize NumPATRegisters
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish7093 authored Sep 8, 2022
1 parent 9e9f8c7 commit 506c8e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/GmmLib/CachePolicy/GmmCachePolicyCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ GmmLib::GmmCachePolicyCommon::GmmCachePolicyCommon(GMM_CACHE_POLICY_ELEMENT *pCa
{
this->pCachePolicy = pCachePolicy;
this->pGmmLibContext = pGmmLibContext;
NumPATRegisters = GMM_NUM_PAT_ENTRIES_LEGACY;
}

/////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions Source/GmmLib/inc/External/Common/GmmConst.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ OTHER DEALINGS IN THE SOFTWARE.
#define GMM_INTERNAL_RESOURCE 0 // Used for Alloc Tag Mapping
#define GMM_MAX_NUMBER_MOCS_INDEXES (64)
#define GMM_GEN9_MAX_NUMBER_MOCS_INDEXES (62) // On SKL there are 64 MOCS indexes, but the last two are reserved by h/w.
#define GMM_NUM_PAT_ENTRIES_LEGACY (8)
#define GMM_NUM_PAT_ENTRIES 8
#define GMM_NUM_MEMORY_TYPES 4
#define GMM_NUM_GFX_PAT_TYPES 6
Expand Down

0 comments on commit 506c8e1

Please sign in to comment.