Files
compute-runtime/runtime/command_stream/definitions/engine_node.h
Dunajski, Bartosz 7781089740 Allow Device creating multiple CSRs [4/n]
- Introduce additional RCS engine
- Set fixed size for Engines array

Change-Id: I06533a425684b64214f956783b07877e6157935b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2018-11-26 09:40:44 +01:00

43 lines
805 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <array>
#include <cstdint>
namespace OCLRT {
enum EngineType : uint32_t {
ENGINE_RCS = 0,
ENGINE_BCS,
ENGINE_VCS,
ENGINE_VECS,
NUM_ENGINES
};
struct EngineInstanceT {
constexpr EngineInstanceT(EngineType type) : type(type), id(0) {}
constexpr EngineInstanceT(EngineType type, int id) : type(type), id(id) {}
EngineType type;
int id;
};
static constexpr std::array<EngineInstanceT, 5> allEngineInstances = {{
{ENGINE_RCS, 0},
{ENGINE_RCS, 1},
{ENGINE_BCS},
{ENGINE_VCS},
{ENGINE_VECS},
}};
static constexpr std::array<EngineInstanceT, 2> gpgpuEngineInstances = {{
{ENGINE_RCS, 0},
{ENGINE_RCS, 1},
}};
} // namespace OCLRT