2018-11-21 09:57:51 +01:00
|
|
|
/*
|
2022-06-28 17:10:24 +02:00
|
|
|
* Copyright (C) 2018-2022 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"
|
|
|
|
|
|
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){};
|
2020-10-28 16:08:37 +01:00
|
|
|
|
2018-11-21 09:57:51 +01:00
|
|
|
CommandStreamReceiver *commandStreamReceiver = nullptr;
|
|
|
|
|
OsContext *osContext = nullptr;
|
2020-08-07 08:40:16 +02:00
|
|
|
|
2022-06-28 17:10:24 +02:00
|
|
|
const aub_stream::EngineType &getEngineType() const { return osContext->getEngineType(); }
|
2021-08-16 18:24:13 +00:00
|
|
|
EngineUsage getEngineUsage() const { return osContext->getEngineUsage(); }
|
2018-11-21 09:57:51 +01:00
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|