mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add adjustHardwareInfo method on dg2
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
77621158e0
commit
518595dd97
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -8,6 +8,8 @@
|
||||
const HardwareInfo DG2::hwInfo = DG2_CONFIG::hwInfo;
|
||||
const uint64_t DG2::defaultHardwareInfoConfig = 0;
|
||||
|
||||
void DG2::adjustHardwareInfo(HardwareInfo *hwInfo) {}
|
||||
|
||||
void setupDG2HardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig) {
|
||||
if (hwInfoConfig == 0x0) {
|
||||
// Default config
|
||||
|
@ -27,6 +27,7 @@ struct DG2 : public XE_HPG_COREFamily {
|
||||
static const RuntimeCapabilityTable capabilityTable;
|
||||
static void (*setupHardwareInfo)(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig);
|
||||
static void setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo);
|
||||
static void adjustHardwareInfo(HardwareInfo *hwInfo);
|
||||
|
||||
static bool isG10(const HardwareInfo &hwInfo) {
|
||||
auto it = std::find(DG2_G10_IDS.begin(), DG2_G10_IDS.end(), hwInfo.platform.usDeviceID);
|
||||
|
@ -170,6 +170,7 @@ void DG2_CONFIG::setupHardwareInfoMultiTile(HardwareInfo *hwInfo, bool setupFeat
|
||||
}
|
||||
}
|
||||
|
||||
adjustHardwareInfo(hwInfo);
|
||||
if (setupFeatureTableAndWorkaroundTable) {
|
||||
DG2::setupFeatureAndWorkaroundTable(hwInfo);
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ int HwInfoConfigHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OS
|
||||
enableCompression(hwInfo);
|
||||
}
|
||||
|
||||
DG2::adjustHardwareInfo(hwInfo);
|
||||
enableBlitterOperationsSupport(hwInfo);
|
||||
|
||||
auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties;
|
||||
@ -41,4 +42,4 @@ int HwInfoConfigHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OS
|
||||
}
|
||||
|
||||
template class HwInfoConfigHw<gfxProduct>;
|
||||
} // namespace NEO
|
||||
} // namespace NEO
|
||||
|
@ -27,7 +27,7 @@ int HwInfoConfigHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OS
|
||||
if (allowCompression(*hwInfo)) {
|
||||
enableCompression(hwInfo);
|
||||
}
|
||||
|
||||
DG2::adjustHardwareInfo(hwInfo);
|
||||
enableBlitterOperationsSupport(hwInfo);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user