mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Enable Device Memory to be shared in WSL-2 with L0
- Add getMemoryManagerType to check which memory manager has been init to determine if Linux + WDDM memory manager is in use. - Add isNTHandle to test and verify if a handle is an NT handle during L0 Open IPC Handle. Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
90d85bee55
commit
ae77bd1bd2
@ -1618,6 +1618,15 @@ TEST_F(MockWddmMemoryManagerTest, givenWddmMemoryManagerWhenVerifyNTHandleThenVe
|
||||
EXPECT_EQ(0, wddm->counterVerifySharedHandle);
|
||||
}
|
||||
|
||||
TEST_F(MockWddmMemoryManagerTest, givenWddmMemoryManagerWhenIsNTHandleisCalledThenVerifyNTHandleisCalled) {
|
||||
wddm->init();
|
||||
MockWddmMemoryManager memoryManager(*executionEnvironment);
|
||||
osHandle handle = 1;
|
||||
memoryManager.isNTHandle(handle, 0);
|
||||
EXPECT_EQ(1, wddm->counterVerifyNTHandle);
|
||||
EXPECT_EQ(0, wddm->counterVerifySharedHandle);
|
||||
}
|
||||
|
||||
TEST_F(MockWddmMemoryManagerTest, givenEnabled64kbpagesWhenCreatingGraphicsMemoryForBufferWithoutHostPtrThen64kbAdressIsAllocated) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
wddm->init();
|
||||
|
Reference in New Issue
Block a user