mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
Simplify verifying EngineUsage in tryGetEngine function. Remove unused getGpgpuEnginesCount function. Related-To: NEO-4940 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
29 lines
746 B
C++
29 lines
746 B
C++
/*
|
|
* Copyright (C) 2018-2021 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() const { return osContext->getEngineType(); }
|
|
EngineUsage getEngineUsage() const { return osContext->getEngineUsage(); }
|
|
};
|
|
} // namespace NEO
|