Skip to content

Commit

Permalink
Renaming Gmm flag for ApertureOnly
Browse files Browse the repository at this point in the history
GMM_RESOURCE_FLAG::Info.ApertureOnly to GMM_RESOURCE_FLAG::Info.NonLocalOnly
Clients should use NonLocalOnly flag, ApertureOnly will be removed once
all clients switch to using new flag

Change-Id: I387a44dae87b111bb6aea8af3638909e8d6b92d3
  • Loading branch information
johnbash authored and drprajap committed Feb 25, 2019
1 parent 8bee050 commit ac68e2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/GmmLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 7)
set(GMMLIB_API_MAJOR_VERSION 8)
set(GMMLIB_API_MINOR_VERSION 0)

if(NOT DEFINED MAJOR_VERSION)
set(MAJOR_VERSION 7)
set(MAJOR_VERSION 8)
endif()

if(NOT DEFINED MINOR_VERSION)
Expand Down
4 changes: 2 additions & 2 deletions Source/GmmLib/inc/External/Common/GmmLibDllName.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.7"
#define GMM_UMD_DLL "libigdgmm.so.8"
#endif
#else
#define GMM_ENTRY_NAME "_OpenGmm@4"
Expand All @@ -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.7"
#define GMM_UMD_DLL "libigdgmm.so.8"
#endif
#endif
5 changes: 3 additions & 2 deletions Source/GmmLib/inc/External/Common/GmmResourceFlags.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ typedef struct GMM_RESOURCE_FLAG_REC
struct
{
uint32_t AllowVirtualPadding : 1;
uint32_t ApertureOnly : 1;
uint32_t ApertureOnly : 1; // Renaming ApertureOnly to NonLocalOnly, Will remove once all clients are moved to NonLocalOnly.
uint32_t BigPage : 1;
uint32_t Cacheable : 1;
uint32_t ContigPhysMemoryForiDART : 1; // iDART clients only; resource allocation must be physically contiguous.
Expand All @@ -103,7 +103,7 @@ typedef struct GMM_RESOURCE_FLAG_REC
uint32_t ForceResidency : 1; // (SVM Only) Forces CPU/GPU residency of the allocation's backing pages at creation.
uint32_t Gfdt : 1;
uint32_t GttMapType : 5;
uint32_t HardwareProtected : 1;
uint32_t HardwareProtected : 1;
uint32_t KernelModeMapped : 1; // Sets up pGmmBlock->pKernelModeMapping to allow kernel-mode mapping of the backing memory
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.
Expand All @@ -114,6 +114,7 @@ typedef struct GMM_RESOURCE_FLAG_REC
uint32_t NoOptimizationPadding : 1; // don't swell size for sake of 64KB pages - FtrWddm2_1_64kbPages
uint32_t NoPhysMemory : 1; // KMD Gfx Client Submission. Client miniport drivers may want to map their physical pages to Gfx memory space instead of allocating Gfx physical memory.
uint32_t NotLockable : 1; // Resource is GPU-exclusive and shall not be reference by the CPU. Relevant to memory allocation components as an optimisation opportunity for mapping buffers in CPU-side.
uint32_t NonLocalOnly : 1;
uint32_t StdSwizzle : 1; // Standard Swizzle (YS) support on SKL+
uint32_t PseudoStdSwizzle : 1; // Only applicable to D3D12+ UMD's, for special-case of limited Standard Swizzle (YS) support on HSW/BDW/CHV.
uint32_t Undefined64KBSwizzle : 1; // Only applicable if system doesn't support StdSwizzle (i.e. Pre-Gen9). If set, surface is using one of the INTEL_64KB_UNDEFINED_* swizzles.
Expand Down

0 comments on commit ac68e2c

Please sign in to comment.