2018-02-19 16:50:17 +08:00
|
|
|
/*
|
2020-02-23 05:21:06 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2018-02-19 16:50:17 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-02-19 16:50:17 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-11-29 22:41:47 +08:00
|
|
|
#include "core/helpers/hw_info.h"
|
2020-02-23 05:50:57 +08:00
|
|
|
|
|
|
|
#include "helpers/hw_helper_tests.h"
|
2018-02-19 16:50:17 +08:00
|
|
|
|
2018-08-23 23:42:35 +08:00
|
|
|
void testDefaultImplementationOfSetupHardwareCapabilities(HwHelper &hwHelper, const HardwareInfo &hwInfo) {
|
2018-02-19 16:50:17 +08:00
|
|
|
HardwareCapabilities hwCaps = {0};
|
|
|
|
|
2018-08-23 23:42:35 +08:00
|
|
|
hwHelper.setupHardwareCapabilities(&hwCaps, hwInfo);
|
2018-02-19 16:50:17 +08:00
|
|
|
|
|
|
|
EXPECT_EQ(16384u, hwCaps.image3DMaxHeight);
|
|
|
|
EXPECT_EQ(16384u, hwCaps.image3DMaxWidth);
|
2018-07-10 19:22:11 +08:00
|
|
|
EXPECT_TRUE(hwCaps.isStatelesToStatefullWithOffsetSupported);
|
2018-02-19 16:50:17 +08:00
|
|
|
}
|
2019-08-22 21:21:02 +08:00
|
|
|
|
|
|
|
HWCMDTEST_F(IGFX_GEN8_CORE, HwHelperTest, givenHwHelperWhenAskedForHvAlign4RequiredThenReturnTrue) {
|
|
|
|
auto &hwHelper = HwHelper::get(pDevice->getHardwareInfo().platform.eRenderCoreFamily);
|
|
|
|
EXPECT_TRUE(hwHelper.hvAlign4Required());
|
|
|
|
}
|
2019-08-27 16:15:03 +08:00
|
|
|
|
|
|
|
HWCMDTEST_F(IGFX_GEN8_CORE, HwHelperTest, givenHwHelperWhenAskedForLowPriorityEngineTypeThenReturnRcs) {
|
|
|
|
auto hwHelperEngineType = HwHelperHw<FamilyType>::lowPriorityEngineType;
|
|
|
|
EXPECT_EQ(aub_stream::EngineType::ENGINE_RCS, hwHelperEngineType);
|
|
|
|
}
|