[20/n] Internal 4GB allocator.

- Switch to internal heap for kernel ISA allocations.
- remove IH from various functions
- remove IHState from CSR , IH is never dirty
- ISA is no longer copied on enqueue calls.

Change-Id: I0099cf2a9ebab6192ea03a74dd35f7da963fd5a5
This commit is contained in:
Mrozek, Michal
2018-03-27 12:55:20 +02:00
committed by sys_ocldev
parent 9f07de306c
commit 9bdf01468e
42 changed files with 124 additions and 318 deletions

View File

@ -127,11 +127,7 @@ HWTEST_F(AUBHelloWorld, simple) {
auto pSBA = reinterpret_cast<STATE_BASE_ADDRESS *>(cmdStateBaseAddress);
ASSERT_NE(nullptr, pSBA);
auto pISH = pSBA->getInstructionBaseAddress();
auto pInterfaceDescriptorData = reinterpret_cast<INTERFACE_DESCRIPTOR_DATA *>(cmdInterfaceDescriptorData);
auto offsetKSP = pInterfaceDescriptorData->getKernelStartPointer() + ((uint64_t)pInterfaceDescriptorData->getKernelStartPointerHigh() << 32);
auto pISA = (void *)ptrOffset(pISH, (uintptr_t)offsetKSP);
auto pISA = pKernel->getKernelInfo().getGraphicsAllocation()->getUnderlyingBuffer();
EXPECT_EQ(0, memcmp(pISA, pExpectedISA, expectedSize));
}
@ -264,11 +260,7 @@ HWTEST_F(AUBSimpleArg, simple) {
auto pSBA = reinterpret_cast<STATE_BASE_ADDRESS *>(cmdStateBaseAddress);
ASSERT_NE(nullptr, pSBA);
auto pISH = pSBA->getInstructionBaseAddress();
auto pInterfaceDescriptorData = reinterpret_cast<INTERFACE_DESCRIPTOR_DATA *>(cmdInterfaceDescriptorData);
auto offsetKSP = pInterfaceDescriptorData->getKernelStartPointer() + ((uint64_t)pInterfaceDescriptorData->getKernelStartPointerHigh() << 32);
auto pISA = (void *)ptrOffset(pISH, (uintptr_t)offsetKSP);
auto pISA = pKernel->getKernelInfo().getGraphicsAllocation()->getUnderlyingBuffer();
EXPECT_EQ(0, memcmp(pISA, pExpectedISA, expectedSize));
}