mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Change-Id: I984dbcedd5456cfdee284f4d2eda1371ba77f0d0 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
32 lines
644 B
C++
32 lines
644 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "engine_node.h"
|
|
|
|
#include <atomic>
|
|
#include <utility>
|
|
|
|
namespace NEO {
|
|
struct HardwareInfo;
|
|
|
|
enum class EngineUsage : uint32_t {
|
|
Regular,
|
|
LowPriority,
|
|
Internal
|
|
};
|
|
|
|
using EngineTypeUsage = std::pair<aub_stream::EngineType, EngineUsage>;
|
|
|
|
namespace EngineHelpers {
|
|
bool isCcs(aub_stream::EngineType engineType);
|
|
bool isBcs(aub_stream::EngineType engineType);
|
|
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo, std::atomic<uint32_t> &selectorCopyEngine);
|
|
}; // namespace EngineHelpers
|
|
} // namespace NEO
|