2021-07-28 22:45:43 +08:00
|
|
|
/*
|
2022-03-26 05:04:08 +08:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2021-07-28 22:45:43 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-08-23 12:02:33 +08:00
|
|
|
#include "shared/source/gen12lp/hw_cmds_adlp.h"
|
2021-08-25 23:39:07 +08:00
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2022-03-26 05:04:08 +08:00
|
|
|
#include "shared/source/helpers/pipeline_select_args.h"
|
2021-08-31 23:48:56 +08:00
|
|
|
#include "shared/source/helpers/pipeline_select_helper.h"
|
2021-07-28 22:45:43 +08:00
|
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
|
|
#include "shared/source/os_interface/hw_info_config.inl"
|
|
|
|
#include "shared/source/os_interface/hw_info_config_bdw_and_later.inl"
|
|
|
|
|
2022-06-20 20:16:05 +08:00
|
|
|
#include "platforms.h"
|
|
|
|
|
2021-08-19 19:06:49 +08:00
|
|
|
constexpr static auto gfxProduct = IGFX_ALDERLAKE_P;
|
|
|
|
|
2022-03-11 01:27:38 +08:00
|
|
|
#include "shared/source/gen12lp/adlp/os_agnostic_hw_info_config_adlp.inl"
|
2021-08-19 19:06:49 +08:00
|
|
|
#include "shared/source/gen12lp/os_agnostic_hw_info_config_gen12lp.inl"
|
2022-11-16 20:14:49 +08:00
|
|
|
namespace NEO {
|
2021-07-28 22:45:43 +08:00
|
|
|
|
|
|
|
template <>
|
2022-12-13 00:43:41 +08:00
|
|
|
int ProductHelperHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const {
|
2021-07-28 22:45:43 +08:00
|
|
|
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSystemInfo->SliceCount = 1;
|
2022-12-13 00:43:41 +08:00
|
|
|
const auto &productHelper = *ProductHelper::get(hwInfo->platform.eProductFamily);
|
|
|
|
hwInfo->featureTable.flags.ftrGpGpuMidThreadLevelPreempt = (hwInfo->platform.usRevId >= productHelper.getHwRevIdFromStepping(REVISION_B, *hwInfo));
|
2021-07-28 22:45:43 +08:00
|
|
|
|
|
|
|
enableBlitterOperationsSupport(hwInfo);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-12-13 00:43:41 +08:00
|
|
|
template class ProductHelperHw<gfxProduct>;
|
2021-07-28 22:45:43 +08:00
|
|
|
} // namespace NEO
|