mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 09:59:39 +08:00
Change-Id: I0f7b41a62d28fe03e22f18f27c8de928d630da6a Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
27 lines
660 B
C++
27 lines
660 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/os_interface/os_context.h"
|
|
|
|
#include "engine_node.h"
|
|
|
|
namespace NEO {
|
|
class CommandStreamReceiver;
|
|
|
|
struct EngineControl {
|
|
EngineControl() = default;
|
|
EngineControl(CommandStreamReceiver *commandStreamReceiver, OsContext *osContext)
|
|
: commandStreamReceiver(commandStreamReceiver),
|
|
osContext(osContext){};
|
|
CommandStreamReceiver *commandStreamReceiver = nullptr;
|
|
OsContext *osContext = nullptr;
|
|
|
|
aub_stream::EngineType &getEngineType() { return osContext->getEngineType(); }
|
|
};
|
|
} // namespace NEO
|