2019-01-10 13:57:40 +01:00
|
|
|
/*
|
2020-01-21 09:35:12 +01:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-01-10 13:57:40 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/hw_helper.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2019-01-10 13:57:40 +01:00
|
|
|
#include "test.h"
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
using namespace NEO;
|
2019-01-10 13:57:40 +01:00
|
|
|
|
|
|
|
template <typename FamilyType>
|
2020-02-21 15:25:04 +01:00
|
|
|
void whenGetGpgpuEnginesThenReturnTwoRcsEngines(const HardwareInfo &hwInfo) {
|
|
|
|
auto gpgpuEngines = HwHelperHw<FamilyType>::get().getGpgpuEngineInstances(hwInfo);
|
2020-01-21 09:35:12 +01:00
|
|
|
EXPECT_EQ(3u, gpgpuEngines.size());
|
2019-03-27 10:06:29 +01:00
|
|
|
EXPECT_EQ(aub_stream::ENGINE_RCS, gpgpuEngines[0]);
|
|
|
|
EXPECT_EQ(aub_stream::ENGINE_RCS, gpgpuEngines[1]);
|
2020-01-21 09:35:12 +01:00
|
|
|
EXPECT_EQ(aub_stream::ENGINE_RCS, gpgpuEngines[2]);
|
2019-01-10 13:57:40 +01:00
|
|
|
}
|