diff --git a/opencl/source/command_queue/hardware_interface_base.inl b/opencl/source/command_queue/hardware_interface_base.inl index 1467dda07a..160418fbf5 100644 --- a/opencl/source/command_queue/hardware_interface_base.inl +++ b/opencl/source/command_queue/hardware_interface_base.inl @@ -244,7 +244,6 @@ void HardwareInterface::obtainIndirectHeaps(CommandQueue &commandQueu size_t dshSize = 0; size_t colorCalcSize = 0; size_t sshSize = HardwareCommandsHelper::getTotalSizeRequiredSSH(multiDispatchInfo); - bool iohEqualsDsh = false; dshSize = HardwareCommandsHelper::getTotalSizeRequiredDSH(multiDispatchInfo); @@ -252,13 +251,9 @@ void HardwareInterface::obtainIndirectHeaps(CommandQueue &commandQueu dsh->getSpace(colorCalcSize); commandQueue.allocateHeapMemory(IndirectHeap::Type::SURFACE_STATE, sshSize, ssh); + commandQueue.allocateHeapMemory(IndirectHeap::Type::INDIRECT_OBJECT, + HardwareCommandsHelper::getTotalSizeRequiredIOH(multiDispatchInfo), ioh); - if (iohEqualsDsh) { - ioh = dsh; - } else { - commandQueue.allocateHeapMemory(IndirectHeap::Type::INDIRECT_OBJECT, - HardwareCommandsHelper::getTotalSizeRequiredIOH(multiDispatchInfo), ioh); - } } else { dsh = &getIndirectHeap(commandQueue, multiDispatchInfo); ioh = &getIndirectHeap(commandQueue, multiDispatchInfo);