Use GfxPartition for GPU address range allocations

[2/n] - OsAgnosticMemoryManager

Related-To: NEO-2877

Change-Id: I887126362381ac960608a2150fae211631d3cd5b
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
This commit is contained in:
Venevtsev, Igor
2019-04-18 15:30:47 +02:00
committed by sys_ocldev
parent bb6dfd4fe6
commit 165d1e4e55
42 changed files with 501 additions and 242 deletions

View File

@@ -44,7 +44,10 @@ TEST_F(EnqueueKernelTest, givenKernelWithSharedObjArgsWhenEnqueueIsCalledThenRes
(uint32_t *)(pKernel->getCrossThreadData() + kernelInfo.kernelArgInfo[0].kernelArgPatchInfoVector[0].crossthreadOffset);
auto address1 = static_cast<uint64_t>(*pKernelArg);
EXPECT_EQ(sharedBuffer->getGraphicsAllocation()->getGpuAddress(), address1);
auto sharedBufferGpuAddress =
pKernel->isBuiltIn ? sharedBuffer->getGraphicsAllocation()->getGpuAddress()
: sharedBuffer->getGraphicsAllocation()->getGpuAddressToPatch();
EXPECT_EQ(sharedBufferGpuAddress, address1);
// update address
glSharing.uploadDataToBufferInfo(1, 1);
@@ -54,7 +57,10 @@ TEST_F(EnqueueKernelTest, givenKernelWithSharedObjArgsWhenEnqueueIsCalledThenRes
auto address2 = static_cast<uint64_t>(*pKernelArg);
EXPECT_NE(address1, address2);
EXPECT_EQ(sharedBuffer->getGraphicsAllocation()->getGpuAddress(), address2);
sharedBufferGpuAddress =
pKernel->isBuiltIn ? sharedBuffer->getGraphicsAllocation()->getGpuAddress()
: sharedBuffer->getGraphicsAllocation()->getGpuAddressToPatch();
EXPECT_EQ(sharedBufferGpuAddress, address2);
delete sharedBuffer;
delete nonSharedBuffer;