2018-11-21 16:57:51 +08:00
|
|
|
/*
|
2021-07-26 07:50:05 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-11-21 16:57:51 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-08-07 14:40:16 +08:00
|
|
|
#include "shared/source/os_interface/os_context.h"
|
|
|
|
|
2020-07-28 16:36:52 +08:00
|
|
|
#include "engine_node.h"
|
2018-11-21 16:57:51 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-11-21 16:57:51 +08:00
|
|
|
class CommandStreamReceiver;
|
|
|
|
|
|
|
|
struct EngineControl {
|
|
|
|
EngineControl() = default;
|
|
|
|
EngineControl(CommandStreamReceiver *commandStreamReceiver, OsContext *osContext)
|
2020-07-28 16:36:52 +08:00
|
|
|
: commandStreamReceiver(commandStreamReceiver),
|
2020-08-07 14:40:16 +08:00
|
|
|
osContext(osContext){};
|
2020-10-28 23:08:37 +08:00
|
|
|
|
2018-11-21 16:57:51 +08:00
|
|
|
CommandStreamReceiver *commandStreamReceiver = nullptr;
|
|
|
|
OsContext *osContext = nullptr;
|
2020-08-07 14:40:16 +08:00
|
|
|
|
2021-07-26 07:50:05 +08:00
|
|
|
aub_stream::EngineType &getEngineType() const { return osContext->getEngineType(); }
|
2021-08-17 02:24:13 +08:00
|
|
|
EngineUsage getEngineUsage() const { return osContext->getEngineUsage(); }
|
2018-11-21 16:57:51 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|