mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Partial support for XE_HP_SDV
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e0a50d3143
commit
96d14967ac
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/direct_submission/direct_submission_hw.h"
|
||||
#include "shared/source/direct_submission/dispatchers/blitter_dispatcher.inl"
|
||||
#include "shared/source/direct_submission/dispatchers/dispatcher.inl"
|
||||
#include "shared/source/direct_submission/dispatchers/render_dispatcher.inl"
|
||||
#include "shared/source/direct_submission/linux/drm_direct_submission.inl"
|
||||
|
||||
#include "hw_cmds.h"
|
||||
|
||||
namespace NEO {
|
||||
using GfxFamily = XeHpFamily;
|
||||
|
||||
template class DrmDirectSubmission<GfxFamily, BlitterDispatcher<GfxFamily>>;
|
||||
template class DrmDirectSubmission<GfxFamily, RenderDispatcher<GfxFamily>>;
|
||||
} // namespace NEO
|
||||
13
shared/source/xe_hp_core/linux/hw_info_config_xe_hp_core.cpp
Normal file
13
shared/source/xe_hp_core/linux/hw_info_config_xe_hp_core.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/hw_info_config.inl"
|
||||
#include "shared/source/os_interface/hw_info_config_xehp_plus.inl"
|
||||
|
||||
#ifdef SUPPORT_XEHP
|
||||
#include "hw_info_config_xehp.inl"
|
||||
#endif
|
||||
60
shared/source/xe_hp_core/linux/hw_info_config_xehp.inl
Normal file
60
shared/source/xe_hp_core/linux/hw_info_config_xehp.inl
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/kernel/kernel_properties.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
|
||||
namespace NEO {
|
||||
template <>
|
||||
int HwInfoConfigHw<IGFX_XE_HP_SDV>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
||||
auto &hwHelper = HwHelper::get(hwInfo->platform.eRenderCoreFamily);
|
||||
|
||||
if (hwHelper.allowRenderCompression(*hwInfo)) {
|
||||
enableRenderCompression(hwInfo);
|
||||
}
|
||||
|
||||
hwInfo->featureTable.ftrRcsNode = false;
|
||||
if (DebugManager.flags.NodeOrdinal.get() == static_cast<int32_t>(aub_stream::EngineType::ENGINE_RCS)) {
|
||||
hwInfo->featureTable.ftrRcsNode = true;
|
||||
}
|
||||
|
||||
enableBlitterOperationsSupport(hwInfo);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool HwInfoConfigHw<IGFX_XE_HP_SDV>::getHostMemCapabilitiesSupported(const HardwareInfo *hwInfo) {
|
||||
HwHelper &hwHelper = HwHelper::get(hwInfo->platform.eRenderCoreFamily);
|
||||
if (hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, *hwInfo) && (hwHelper.getLocalMemoryAccessMode(*hwInfo) == LocalMemoryAccessMode::CpuAccessAllowed)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
uint64_t HwInfoConfigHw<IGFX_XE_HP_SDV>::getHostMemCapabilitiesValue() {
|
||||
return UNIFIED_SHARED_MEMORY_ACCESS;
|
||||
}
|
||||
|
||||
template <>
|
||||
void HwInfoConfigHw<IGFX_XE_HP_SDV>::getKernelExtendedProperties(uint32_t *fp16, uint32_t *fp32, uint32_t *fp64) {
|
||||
*fp16 = 0u;
|
||||
*fp32 = FP_ATOMIC_EXT_FLAG_GLOBAL_ADD;
|
||||
*fp64 = 0u;
|
||||
}
|
||||
|
||||
template <>
|
||||
uint32_t HwInfoConfigHw<IGFX_XE_HP_SDV>::getDeviceMemoryMaxClkRate(const HardwareInfo *hwInfo) {
|
||||
return 2800u;
|
||||
}
|
||||
|
||||
template class HwInfoConfigHw<IGFX_XE_HP_SDV>;
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user