Add support for USM shared in WSL for dGPU

This patch force KMD allocation path for USM shared
Additionally we force 64kb page from lock which is
required to properly program GPU VA

Related-To: NEO-6913
Signed-off-by: Kamil Diedrich kamil.diedrich@intel.com
This commit is contained in:
Kamil Diedrich
2022-12-14 15:14:49 +01:00
committed by Compute-Runtime-Automation
parent 522076cf82
commit b36aa626bc
20 changed files with 460 additions and 22 deletions

View File

@@ -47,6 +47,8 @@ struct AllocationProperties {
uint64_t gpuAddress = 0;
OsContext *osContext = nullptr;
bool useMmapObject = true;
bool forceKMDAllocation = false;
bool makeGPUVaDifferentThanCPUPtr = false;
uint32_t cacheRegion = 0;
bool makeDeviceBufferLockable = false;
@@ -125,6 +127,8 @@ struct AllocationData {
ImageInfo *imgInfo = nullptr;
uint32_t rootDeviceIndex = 0;
OsContext *osContext = nullptr;
bool forceKMDAllocation = false;
bool makeGPUVaDifferentThanCPUPtr = false;
bool useMmapObject = true;
uint32_t cacheRegion = 0;
};