Delete redundant code.

Change-Id: I0f7b41a62d28fe03e22f18f27c8de928d630da6a
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
Sebastian Luzynski
2020-08-07 08:40:16 +02:00
committed by sys_ocldev
parent b7ff10fccf
commit 4bffae8254
3 changed files with 8 additions and 9 deletions

View File

@@ -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();

View File

@@ -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);
}
}

View File

@@ -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