Simplify code for Front End programming

Change-Id: I1f6e1f4f6eef24c8018c54ae1b7f6ec67adb55b3
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2019-05-16 17:17:53 +02:00
committed by sys_ocldev
parent fa3d4f39f4
commit 77ce18ad35
8 changed files with 36 additions and 29 deletions

View File

@@ -40,4 +40,9 @@ bool HwHelper::cacheFlushAfterWalkerSupported(const HardwareInfo &hwInfo) {
return hwInfo.capabilityTable.supportCacheFlushAfterWalker;
}
uint32_t HwHelper::getMaxThreadsForVfe(const HardwareInfo &hwInfo) {
uint32_t threadsPerEU = (hwInfo.gtSystemInfo.ThreadCount / hwInfo.gtSystemInfo.EUCount) + hwInfo.capabilityTable.extraQuantityThreadsPerEU;
return hwInfo.gtSystemInfo.EUCount * threadsPerEU;
}
} // namespace NEO