mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
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:
committed by
sys_ocldev
parent
bb6dfd4fe6
commit
165d1e4e55
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user