2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2022-06-30 03:17:47 +08:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-06-30 03:17:47 +08:00
|
|
|
#include "shared/source/gen8/hw_cmds.h"
|
2021-12-23 17:28:36 +08:00
|
|
|
#include "shared/test/common/helpers/default_hw_info.h"
|
2022-06-30 03:17:47 +08:00
|
|
|
#include "shared/test/common/test_macros/header/per_product_test_definitions.h"
|
|
|
|
#include "shared/test/common/test_macros/test.h"
|
2021-12-15 01:40:08 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2021-12-23 17:28:36 +08:00
|
|
|
using BroadwellOnlyTest = ::testing::Test;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2020-11-01 04:09:35 +08:00
|
|
|
BDWTEST_F(BroadwellOnlyTest, WhenGettingProductFamilyThenBroadwellIsReturned) {
|
2021-12-23 17:28:36 +08:00
|
|
|
EXPECT_EQ(IGFX_BROADWELL, defaultHwInfo->platform.eProductFamily);
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
|
2021-12-23 17:28:36 +08:00
|
|
|
using Gen8OnlyTest = ::testing::Test;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2020-10-26 17:56:05 +08:00
|
|
|
GEN8TEST_F(Gen8OnlyTest, WhenGettingRenderCoreFamilyThenGen8CoreIsReturned) {
|
2021-12-23 17:28:36 +08:00
|
|
|
EXPECT_EQ(IGFX_GEN8_CORE, defaultHwInfo->platform.eRenderCoreFamily);
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|