mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
HwHelper: update getSubDevicesCount and getEnginesCount implementation
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8582c9cbc7
commit
afd5f766c2
@@ -1,23 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
uint32_t HwHelper::getSubDevicesCount(const HardwareInfo *pHwInfo) {
|
||||
return DebugManager.flags.CreateMultipleSubDevices.get() > 0 ? DebugManager.flags.CreateMultipleSubDevices.get() : 1u;
|
||||
}
|
||||
|
||||
uint32_t HwHelper::getEnginesCount(const HardwareInfo &hwInfo) {
|
||||
return 1u;
|
||||
}
|
||||
|
||||
uint32_t HwHelper::getCopyEnginesCount(const HardwareInfo &hwInfo) {
|
||||
return hwInfo.capabilityTable.blitterOperationsSupported ? 1 : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user