mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Use const values instead of constexpr from std::array::size()
Change-Id: I705888b77801cd32487c4d53fc320cf839ec9079 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
42ba6c10fc
commit
d39309adf2
@@ -20,6 +20,9 @@ enum EngineType : uint32_t {
|
||||
};
|
||||
|
||||
struct EngineInstanceT {
|
||||
static const size_t numAllEngineInstances = 5;
|
||||
static const size_t numGpgpuEngineInstances = 2;
|
||||
|
||||
constexpr EngineInstanceT(EngineType type) : type(type), id(0) {}
|
||||
constexpr EngineInstanceT(EngineType type, int id) : type(type), id(id) {}
|
||||
|
||||
@@ -27,7 +30,7 @@ struct EngineInstanceT {
|
||||
int id;
|
||||
};
|
||||
|
||||
static constexpr std::array<EngineInstanceT, 5> allEngineInstances = {{
|
||||
static constexpr std::array<EngineInstanceT, EngineInstanceT::numAllEngineInstances> allEngineInstances = {{
|
||||
{ENGINE_RCS, 0},
|
||||
{ENGINE_RCS, 1},
|
||||
{ENGINE_BCS},
|
||||
@@ -35,7 +38,7 @@ static constexpr std::array<EngineInstanceT, 5> allEngineInstances = {{
|
||||
{ENGINE_VECS},
|
||||
}};
|
||||
|
||||
static constexpr std::array<EngineInstanceT, 2> gpgpuEngineInstances = {{
|
||||
static constexpr std::array<EngineInstanceT, EngineInstanceT::numGpgpuEngineInstances> gpgpuEngineInstances = {{
|
||||
{ENGINE_RCS, 0},
|
||||
{ENGINE_RCS, 1},
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user