Copy ISA on CPU if BCS is not supported

Change-Id: I18b0bea70a0104dfa3f930ee360b9967f8d615be
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2020-09-23 15:30:01 +02:00
committed by sys_ocldev
parent 1185205673
commit bb788b4cc4
4 changed files with 60 additions and 3 deletions

View File

@@ -435,7 +435,9 @@ bool KernelInfo::createKernelAllocation(const Device &device) {
if (kernelAllocation->isAllocatedInLocalMemoryPool() && hwHelper.isBlitCopyRequiredForLocalMemory(hwInfo)) {
auto status = BlitHelperFunctions::blitMemoryToAllocation(device, kernelAllocation, 0, heapInfo.pKernelHeap, {kernelIsaSize, 1, 1});
return (status == BlitOperationResult::Success);
if (status != BlitOperationResult::Unsupported) {
return status == BlitOperationResult::Success;
}
}
return device.getMemoryManager()->copyMemoryToAllocation(kernelAllocation, heapInfo.pKernelHeap, kernelIsaSize);