mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Delete redundant code.
Change-Id: I0f7b41a62d28fe03e22f18f27c8de928d630da6a Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b7ff10fccf
commit
4bffae8254
@@ -153,7 +153,6 @@ bool Device::createEngine(uint32_t deviceCsrIndex, aub_stream::EngineType engine
|
||||
}
|
||||
|
||||
EngineControl engine{commandStreamReceiver.get(), osContext};
|
||||
engine.engineType = engineType;
|
||||
engines.push_back(engine);
|
||||
if (!lowPriority && !internalUsage) {
|
||||
const auto &hardwareInfo = this->getHardwareInfo();
|
||||
|
||||
@@ -163,13 +163,13 @@ const HwHelper::EngineInstancesContainer HwHelperHw<Family>::getGpgpuEngineInsta
|
||||
template <>
|
||||
void HwHelperHw<Family>::addEngineToEngineGroup(std::vector<std::vector<EngineControl>> &engineGroups,
|
||||
EngineControl &engine, const HardwareInfo &hwInfo) const {
|
||||
if (engine.engineType == aub_stream::ENGINE_RCS) {
|
||||
if (engine.getEngineType() == aub_stream::ENGINE_RCS) {
|
||||
engineGroups[static_cast<uint32_t>(EngineGroupType::RenderCompute)].push_back(engine);
|
||||
}
|
||||
if (engine.engineType == aub_stream::ENGINE_CCS) {
|
||||
if (engine.getEngineType() == aub_stream::ENGINE_CCS) {
|
||||
engineGroups[static_cast<uint32_t>(EngineGroupType::Compute)].push_back(engine);
|
||||
}
|
||||
if (engine.engineType == aub_stream::ENGINE_BCS) {
|
||||
if (engine.getEngineType() == aub_stream::ENGINE_BCS) {
|
||||
engineGroups[static_cast<uint32_t>(EngineGroupType::Copy)].push_back(engine);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,21 +6,21 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
#include "engine_node.h"
|
||||
|
||||
namespace NEO {
|
||||
class CommandStreamReceiver;
|
||||
class OsContext;
|
||||
|
||||
struct EngineControl {
|
||||
EngineControl() = default;
|
||||
EngineControl(CommandStreamReceiver *commandStreamReceiver, OsContext *osContext)
|
||||
: commandStreamReceiver(commandStreamReceiver),
|
||||
osContext(osContext),
|
||||
engineType(aub_stream::EngineType::ENGINE_RCS){};
|
||||
|
||||
osContext(osContext){};
|
||||
CommandStreamReceiver *commandStreamReceiver = nullptr;
|
||||
OsContext *osContext = nullptr;
|
||||
aub_stream::EngineType engineType;
|
||||
|
||||
aub_stream::EngineType &getEngineType() { return osContext->getEngineType(); }
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user