mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Resolves: NEO-5092 Change-Id: I544247a057a667ce6423f2e59ba4ca769e866479 Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com>
27 lines
727 B
C++
27 lines
727 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <>
|
|
int HwInfoConfigHw<IGFX_ALDERLAKE_S>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
if (nullptr == osIface) {
|
|
return 0;
|
|
}
|
|
|
|
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
|
|
gtSystemInfo->SliceCount = 1;
|
|
HwHelper &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
|
hwInfo->featureTable.ftrGpGpuMidThreadLevelPreempt = (hwInfo->platform.usRevId >= hwHelper.getHwRevIdFromStepping(REVISION_C, *hwInfo));
|
|
return 0;
|
|
}
|
|
|
|
template class HwInfoConfigHw<IGFX_ALDERLAKE_S>;
|
|
} // namespace NEO
|