Add debug flag to control ISA allocation padding

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2022-03-18 12:12:26 +00:00
committed by Compute-Runtime-Automation
parent 8e98b586ed
commit d2462ff8fb
6 changed files with 23 additions and 4 deletions

View File

@@ -167,7 +167,10 @@ uint32_t HwHelperHw<Family>::getMaxNumSamplers() const {
template <>
size_t HwHelperHw<Family>::getPaddingForISAAllocation() const {
return 3584;
if (DebugManager.flags.ForceExtendedKernelIsaSize.get() >= 1) {
return 0xE00 + (MemoryConstants::pageSize * DebugManager.flags.ForceExtendedKernelIsaSize.get());
}
return 0xE00;
}
template <>