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