refactor: get ioh alignment from static function

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2024-07-24 11:27:35 +00:00
committed by Compute-Runtime-Automation
parent 1d3d3e9a79
commit afee8814ef
22 changed files with 65 additions and 52 deletions

View File

@@ -76,7 +76,7 @@ size_t HardwareCommandsHelper<GfxFamily>::getSizeRequiredIOH(const Kernel &kerne
if (pImplicitArgs) {
size += ImplicitArgsHelper::getSizeForImplicitArgsPatching(pImplicitArgs, kernelDescriptor, isHwLocalIdGeneration, rootDeviceEnvironment);
}
return alignUp(size, rootDeviceEnvironment.getHelper<GfxCoreHelper>().getIOHAlignment());
return alignUp(size, NEO::EncodeDispatchKernel<GfxFamily>::getDefaultIOHAlignment());
}
template <typename GfxFamily>
@@ -347,7 +347,7 @@ size_t HardwareCommandsHelper<GfxFamily>::sendIndirectState(
WalkerType::INDIRECTDATASTARTADDRESS_ALIGN_SIZE);
walkerCmd->setIndirectDataLength(indirectDataLength);
ioh.align(kernel.getGfxCoreHelper().getIOHAlignment());
ioh.align(NEO::EncodeDispatchKernel<GfxFamily>::getDefaultIOHAlignment());
}
return offsetCrossThreadData;