mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Always specify rootDeviceIndex for graphics memory allocations
Related-To: NEO-2941 Change-Id: Ia2362fd6b4e72ede02919152475f40b3edbc3658 Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
5f021afd6d
commit
63fd26f6d6
@@ -22,7 +22,7 @@ TEST_F(KernelSubstituteTest, givenKernelWhenSubstituteKernelHeapWithGreaterSizeT
|
||||
pHeader->KernelHeapSize = initialHeapSize;
|
||||
|
||||
EXPECT_EQ(nullptr, kernel.kernelInfo.kernelAllocation);
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getMemoryManager());
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getRootDeviceIndex(), pDevice->getMemoryManager());
|
||||
auto firstAllocation = kernel.kernelInfo.kernelAllocation;
|
||||
EXPECT_NE(nullptr, firstAllocation);
|
||||
auto firstAllocationSize = firstAllocation->getUnderlyingBufferSize();
|
||||
@@ -53,7 +53,7 @@ TEST_F(KernelSubstituteTest, givenKernelWhenSubstituteKernelHeapWithSameSizeThen
|
||||
pHeader->KernelHeapSize = initialHeapSize;
|
||||
|
||||
EXPECT_EQ(nullptr, kernel.kernelInfo.kernelAllocation);
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getMemoryManager());
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getRootDeviceIndex(), pDevice->getMemoryManager());
|
||||
auto firstAllocation = kernel.kernelInfo.kernelAllocation;
|
||||
EXPECT_NE(nullptr, firstAllocation);
|
||||
auto firstAllocationSize = firstAllocation->getUnderlyingBufferSize();
|
||||
@@ -83,7 +83,7 @@ TEST_F(KernelSubstituteTest, givenKernelWhenSubstituteKernelHeapWithSmallerSizeT
|
||||
pHeader->KernelHeapSize = initialHeapSize;
|
||||
|
||||
EXPECT_EQ(nullptr, kernel.kernelInfo.kernelAllocation);
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getMemoryManager());
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getRootDeviceIndex(), pDevice->getMemoryManager());
|
||||
auto firstAllocation = kernel.kernelInfo.kernelAllocation;
|
||||
EXPECT_NE(nullptr, firstAllocation);
|
||||
auto firstAllocationSize = firstAllocation->getUnderlyingBufferSize();
|
||||
@@ -115,7 +115,7 @@ TEST_F(KernelSubstituteTest, givenKernelWithUsedKernelAllocationWhenSubstituteKe
|
||||
const size_t initialHeapSize = 0x40;
|
||||
pHeader->KernelHeapSize = initialHeapSize;
|
||||
|
||||
kernel.kernelInfo.createKernelAllocation(memoryManager);
|
||||
kernel.kernelInfo.createKernelAllocation(pDevice->getRootDeviceIndex(), memoryManager);
|
||||
auto firstAllocation = kernel.kernelInfo.kernelAllocation;
|
||||
|
||||
uint32_t notReadyTaskCount = *commandStreamReceiver.getTagAddress() + 1u;
|
||||
|
||||
Reference in New Issue
Block a user