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