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