2018-02-19 16:50:17 +08:00
|
|
|
/*
|
2019-02-12 17:56:27 +08:00
|
|
|
* Copyright (C) 2017-2019 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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "runtime/helpers/hw_info.h"
|
|
|
|
#include "unit_tests/helpers/hw_helper_tests.h"
|
|
|
|
|
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
|
|
|
}
|