mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
[7/n] Internal 4GB allocator
- rename getBase to getCpuBase - change some test names accordingly. Change-Id: I6fb2e4714298250147ea7766a916d7f5d62edc54
This commit is contained in:
committed by
sys_ocldev
parent
cfe1f72dcb
commit
1602fa5a88
@@ -566,7 +566,7 @@ TEST_P(CommandQueueIndirectHeapTest, GivenCommandQueueWithHeapAllocatedWhenIndir
|
||||
|
||||
EXPECT_EQ(nullptr, cmdQ.indirectHeap[this->GetParam()]->getGraphicsAllocation());
|
||||
|
||||
EXPECT_EQ(nullptr, indirectHeap.getBase());
|
||||
EXPECT_EQ(nullptr, indirectHeap.getCpuBase());
|
||||
EXPECT_EQ(0u, indirectHeap.getMaxAvailableSpace());
|
||||
}
|
||||
|
||||
@@ -779,7 +779,7 @@ TEST(CommandQueueGetIndirectHeap, whenNewInstructionHeapIsBeingCreatedThenComman
|
||||
EXPECT_EQ(alignedPatternSize, heap.getUsed());
|
||||
|
||||
ASSERT_LE(sizeof(sipPattern), heap.getMaxAvailableSpace());
|
||||
char *reservedBlock = reinterpret_cast<char *>(heap.getBase());
|
||||
char *reservedBlock = reinterpret_cast<char *>(heap.getCpuBase());
|
||||
auto dataFoundInReservedBlock = ArrayRef<char>(reservedBlock, sizeof(sipPattern));
|
||||
auto expectedData = ArrayRef<char>(csr->instructionHeapReserveredData);
|
||||
EXPECT_THAT(dataFoundInReservedBlock, testing::ContainerEq(expectedData));
|
||||
|
||||
Reference in New Issue
Block a user