2018-11-21 16:57:51 +08:00
|
|
|
/*
|
2023-01-11 01:16:08 +08:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2018-11-21 16:57:51 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2023-01-11 01:16:08 +08:00
|
|
|
#include "shared/source/helpers/engine_node_helper.h"
|
|
|
|
|
|
|
|
namespace aub_stream {
|
|
|
|
enum EngineType : uint32_t;
|
|
|
|
}
|
2020-08-07 14:40:16 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2023-01-11 01:16:08 +08:00
|
|
|
class OsContext;
|
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
|
|
|
|
2023-01-11 01:16:08 +08:00
|
|
|
const aub_stream::EngineType &getEngineType() const;
|
|
|
|
EngineUsage getEngineUsage() const;
|
2018-11-21 16:57:51 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|