| 1 |
/* |
| 2 |
* Copyright (C) 2020-2024 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "shared/test/common/fixtures/linux/device_id_fixture.h" |
| 9 |
using namespace NEO; |
| 10 |
|
| 11 |
TEST_F(DeviceIdTests, GivenDg1SupportedDeviceIdThenHardwareInfoIsCorrect) { |
| 12 |
std::array<DeviceDescriptor, 5> expectedDescriptors = {{ |
| 13 |
{0x4905, &Dg1HwConfig::hwInfo, &Dg1HwConfig::setupHardwareInfo}, |
| 14 |
{0x4906, &Dg1HwConfig::hwInfo, &Dg1HwConfig::setupHardwareInfo}, |
| 15 |
{0x4907, &Dg1HwConfig::hwInfo, &Dg1HwConfig::setupHardwareInfo}, |
| 16 |
{0x4908, &Dg1HwConfig::hwInfo, &Dg1HwConfig::setupHardwareInfo}, |
| 17 |
{0x4909, &Dg1HwConfig::hwInfo, &Dg1HwConfig::setupHardwareInfo}, |
| 18 |
}}; |
| 19 |
|
| 20 |
testImpl(expectedDescriptors); |
| 21 |
} |