fix: report correct number of XeCore per Cluster

Related-To: NEO-10060

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
This commit is contained in:
Wenbin Lu
2024-11-19 18:18:28 +00:00
committed by Compute-Runtime-Automation
parent fc5cab4445
commit 47383d752f
4 changed files with 16 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
#include "shared/source/command_stream/linear_stream.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/gfx_core_helper.h"
#include "shared/source/release_helper/release_helper.h"
@@ -176,4 +177,8 @@ void setupDefaultFeatureTableAndWorkaroundTable(HardwareInfo *hwInfo) {
workaroundTable->flags.wa4kAlignUVOffsetNV12LinearSurface = true;
}
uint32_t getNumSubSlicesPerSlice(const HardwareInfo &hwInfo) {
return static_cast<uint32_t>(Math::divideAndRoundUp(hwInfo.gtSystemInfo.SubSliceCount, hwInfo.gtSystemInfo.SliceCount));
}
} // namespace NEO