2020-06-16 20:18:59 +08:00
|
|
|
/*
|
2024-10-01 19:26:35 +08:00
|
|
|
* Copyright (C) 2021-2024 Intel Corporation
|
2020-06-16 20:18:59 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-08-23 12:02:33 +08:00
|
|
|
#include "shared/source/gen12lp/hw_cmds_dg1.h"
|
2023-02-08 18:14:15 +08:00
|
|
|
#include "shared/source/gen12lp/hw_info_dg1.h"
|
2020-06-16 20:18:59 +08:00
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2023-03-10 20:28:11 +08:00
|
|
|
#include "shared/source/os_interface/product_helper.h"
|
|
|
|
#include "shared/source/os_interface/product_helper.inl"
|
2023-03-07 20:19:36 +08:00
|
|
|
#include "shared/source/os_interface/product_helper_bdw_and_later.inl"
|
2020-06-16 20:18:59 +08:00
|
|
|
|
2021-08-19 19:06:49 +08:00
|
|
|
constexpr static auto gfxProduct = IGFX_DG1;
|
|
|
|
|
2023-02-03 20:25:43 +08:00
|
|
|
#include "shared/source/gen12lp/dg1/os_agnostic_product_helper_dg1.inl"
|
|
|
|
#include "shared/source/gen12lp/os_agnostic_product_helper_gen12lp.inl"
|
2022-11-16 20:14:49 +08:00
|
|
|
namespace NEO {
|
2020-06-16 20:18:59 +08:00
|
|
|
|
2021-08-04 08:04:09 +08:00
|
|
|
template <>
|
2022-12-13 00:43:41 +08:00
|
|
|
int ProductHelperHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const {
|
2020-06-16 20:18:59 +08:00
|
|
|
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSystemInfo->SliceCount = 1;
|
|
|
|
|
2020-11-21 23:50:18 +08:00
|
|
|
enableBlitterOperationsSupport(hwInfo);
|
2020-06-16 20:18:59 +08:00
|
|
|
|
2021-04-07 20:51:30 +08:00
|
|
|
auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties;
|
|
|
|
kmdNotifyProperties.enableKmdNotify = true;
|
2021-05-05 21:42:12 +08:00
|
|
|
kmdNotifyProperties.delayKmdNotifyMicroseconds = 300;
|
2020-06-16 20:18:59 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-12-13 00:43:41 +08:00
|
|
|
template class ProductHelperHw<gfxProduct>;
|
2020-06-16 20:18:59 +08:00
|
|
|
} // namespace NEO
|