2019-10-14 19:33:18 +08:00
|
|
|
/*
|
2021-05-17 23:22:49 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-10-14 19:33:18 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "engine_node.h"
|
|
|
|
|
2020-02-25 01:25:42 +08:00
|
|
|
#include <atomic>
|
2021-05-17 23:22:49 +08:00
|
|
|
#include <string>
|
2020-09-15 23:29:02 +08:00
|
|
|
#include <utility>
|
2020-02-25 01:25:42 +08:00
|
|
|
|
2019-10-14 19:33:18 +08:00
|
|
|
namespace NEO {
|
2020-01-17 00:52:17 +08:00
|
|
|
struct HardwareInfo;
|
2021-07-02 19:34:07 +08:00
|
|
|
struct SelectorCopyEngine;
|
2020-01-17 00:52:17 +08:00
|
|
|
|
2020-09-15 23:29:02 +08:00
|
|
|
enum class EngineUsage : uint32_t {
|
|
|
|
Regular,
|
|
|
|
LowPriority,
|
2021-05-17 23:22:49 +08:00
|
|
|
Internal,
|
|
|
|
|
|
|
|
EngineUsageCount,
|
2020-09-15 23:29:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
using EngineTypeUsage = std::pair<aub_stream::EngineType, EngineUsage>;
|
|
|
|
|
2020-01-13 20:15:03 +08:00
|
|
|
namespace EngineHelpers {
|
2019-10-14 19:33:18 +08:00
|
|
|
bool isCcs(aub_stream::EngineType engineType);
|
2019-11-26 01:37:19 +08:00
|
|
|
bool isBcs(aub_stream::EngineType engineType);
|
2021-07-02 19:34:07 +08:00
|
|
|
aub_stream::EngineType getBcsEngineType(const HardwareInfo &hwInfo, SelectorCopyEngine &selectorCopyEngine, bool internalUsage = false);
|
|
|
|
void releaseBcsEngineType(aub_stream::EngineType engineType, SelectorCopyEngine &selectorCopyEngine);
|
2021-08-10 19:20:40 +08:00
|
|
|
aub_stream::EngineType remapEngineTypeToHwSpecific(aub_stream::EngineType inputType, const HardwareInfo &hwInfo);
|
2021-05-17 23:22:49 +08:00
|
|
|
|
|
|
|
std::string engineTypeToString(aub_stream::EngineType engineType);
|
|
|
|
std::string engineTypeToStringAdditional(aub_stream::EngineType engineType);
|
|
|
|
std::string engineUsageToString(EngineUsage usage);
|
|
|
|
|
2020-01-13 20:15:03 +08:00
|
|
|
}; // namespace EngineHelpers
|
2019-10-14 19:33:18 +08:00
|
|
|
} // namespace NEO
|