2022-12-12 14:51:27 +00:00
|
|
|
/*
|
2023-09-18 12:28:40 +00:00
|
|
|
* Copyright (C) 2022-2023 Intel Corporation
|
2022-12-12 14:51:27 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/compiler_interface/igc_platform_helper.h"
|
|
|
|
|
|
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
|
|
|
|
|
|
#include "ocl_igc_interface/gt_system_info.h"
|
|
|
|
|
#include "ocl_igc_interface/igc_features_and_workarounds.h"
|
|
|
|
|
#include "ocl_igc_interface/platform_helper.h"
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
void populateIgcPlatform<>(IGC::Platform<1> &igcPlatform, const HardwareInfo &hwInfo) {
|
|
|
|
|
IGC::PlatformHelper::PopulateInterfaceWith(igcPlatform, hwInfo.platform);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <>
|
2023-09-19 02:25:41 +02:00
|
|
|
void populateIgcPlatform<>(IGC::Platform<2> &igcPlatform, const HardwareInfo &hwInfo) {
|
2022-12-12 14:51:27 +00:00
|
|
|
igcPlatform.SetProductFamily(hwInfo.platform.eProductFamily);
|
|
|
|
|
igcPlatform.SetPCHProductFamily(hwInfo.platform.ePCHProductFamily);
|
|
|
|
|
igcPlatform.SetDisplayCoreFamily(hwInfo.platform.eDisplayCoreFamily);
|
|
|
|
|
igcPlatform.SetRenderCoreFamily(hwInfo.platform.eRenderCoreFamily);
|
|
|
|
|
igcPlatform.SetPlatformType(hwInfo.platform.ePlatformType);
|
|
|
|
|
igcPlatform.SetDeviceID(hwInfo.platform.usDeviceID);
|
|
|
|
|
igcPlatform.SetRevId(hwInfo.platform.usRevId);
|
|
|
|
|
igcPlatform.SetDeviceID_PCH(hwInfo.platform.usDeviceID_PCH);
|
|
|
|
|
igcPlatform.SetRevId_PCH(hwInfo.platform.usRevId_PCH);
|
|
|
|
|
igcPlatform.SetGTType(hwInfo.platform.eGTType);
|
|
|
|
|
igcPlatform.SetRenderBlockID(hwInfo.ipVersion.value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace NEO
|