mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add padding for ISA allocations
Related-To: NEO-5771 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0d05ef2a3c
commit
bb9d902899
@ -116,7 +116,10 @@ void KernelDataTest::buildAndDecode() {
|
||||
if (kernelHeapSize) {
|
||||
auto kernelAllocation = pKernelInfo->getGraphicsAllocation();
|
||||
UNRECOVERABLE_IF(kernelAllocation == nullptr);
|
||||
EXPECT_EQ(kernelAllocation->getUnderlyingBufferSize(), kernelHeapSize);
|
||||
auto &device = pContext->getDevice(0)->getDevice();
|
||||
auto &hwHelper = NEO::HwHelper::get(device.getHardwareInfo().platform.eRenderCoreFamily);
|
||||
size_t isaPadding = hwHelper.getPaddingForISAAllocation();
|
||||
EXPECT_EQ(kernelAllocation->getUnderlyingBufferSize(), kernelHeapSize + isaPadding);
|
||||
auto kernelIsa = kernelAllocation->getUnderlyingBuffer();
|
||||
EXPECT_EQ(0, memcmp(kernelIsa, pKernelInfo->heapInfo.pKernelHeap, kernelHeapSize));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user