mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
refactor: get ioh alignment from static function
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1d3d3e9a79
commit
afee8814ef
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user