mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Setting the right handle value in fragment
Change-Id: Idcbdce5fc686360f252c8db0423ae77d9155702e
This commit is contained in:

committed by
sys_ocldev

parent
eb1b5ded9c
commit
e15c2b899f
@ -257,7 +257,7 @@ void WddmMemoryManager::addAllocationToHostPtrManager(GraphicsAllocation *gfxAll
|
||||
|
||||
fragment.osInternalStorage = new OsHandle();
|
||||
fragment.osInternalStorage->gpuPtr = gfxAllocation->getGpuAddress();
|
||||
fragment.osInternalStorage->handle = gfxAllocation->peekSharedHandle();
|
||||
fragment.osInternalStorage->handle = wddmMemory->handle;
|
||||
fragment.osInternalStorage->gmm = gfxAllocation->gmm;
|
||||
fragment.residency = &wddmMemory->getResidencyData();
|
||||
hostPtrManager.storeFragment(fragment);
|
||||
|
@ -96,7 +96,7 @@ TEST_F(WddmMemoryManagerTest, GivenGraphicsAllocationWhenAddAndRemoveAllocationT
|
||||
EXPECT_NE(fragment->osInternalStorage, nullptr);
|
||||
EXPECT_EQ(fragment->osInternalStorage->gmm, gfxAllocation.gmm);
|
||||
EXPECT_NE(fragment->osInternalStorage->gpuPtr, 0ULL);
|
||||
EXPECT_EQ(fragment->osInternalStorage->handle, gfxAllocation.peekSharedHandle());
|
||||
EXPECT_EQ(fragment->osInternalStorage->handle, gfxAllocation.handle);
|
||||
EXPECT_NE(fragment->residency, nullptr);
|
||||
|
||||
FragmentStorage fragmentStorage = {};
|
||||
|
Reference in New Issue
Block a user