mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
[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:

committed by
sys_ocldev

parent
9f07de306c
commit
9bdf01468e
@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user