|
1 | 1 | /* |
2 | | - * Copyright (C) 2022-2023 Intel Corporation |
| 2 | + * Copyright (C) 2022-2024 Intel Corporation |
3 | 3 | * |
4 | 4 | * SPDX-License-Identifier: MIT |
5 | 5 | * |
@@ -89,14 +89,27 @@ PVCTEST_F(DeviceTestPvc, givenPvcXtDeviceIdAndRevIdWhenGetDeviceIpVersion) { |
89 | 89 | ze_device_ip_version_ext_t zeDeviceIpVersion = {ZE_STRUCTURE_TYPE_DEVICE_IP_VERSION_EXT}; |
90 | 90 | zeDeviceIpVersion.ipVersion = std::numeric_limits<uint32_t>::max(); |
91 | 91 | deviceProperties.pNext = &zeDeviceIpVersion; |
92 | | - std::vector<std::pair<uint32_t, AOT::PRODUCT_CONFIG>> pvcValues = { |
| 92 | + std::vector<std::pair<uint32_t, AOT::PRODUCT_CONFIG>> pvcXtValues = { |
93 | 93 | {0x3, AOT::PVC_XT_A0}, |
94 | 94 | {0x5, AOT::PVC_XT_B0}, |
95 | 95 | {0x6, AOT::PVC_XT_B1}, |
96 | 96 | {0x7, AOT::PVC_XT_C0}}; |
97 | 97 |
|
| 98 | + std::vector<std::pair<uint32_t, AOT::PRODUCT_CONFIG>> pvcXtVgValues = {{0x7, AOT::PVC_XT_C0_VG}}; |
| 99 | + |
98 | 100 | for (const auto &deviceId : pvcXtDeviceIds) { |
99 | | - for (const auto &[revId, config] : pvcValues) { |
| 101 | + for (const auto &[revId, config] : pvcXtValues) { |
| 102 | + device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usDeviceID = deviceId; |
| 103 | + device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usRevId = revId; |
| 104 | + device->getProperties(&deviceProperties); |
| 105 | + |
| 106 | + EXPECT_NE(std::numeric_limits<uint32_t>::max(), zeDeviceIpVersion.ipVersion); |
| 107 | + EXPECT_EQ(config, zeDeviceIpVersion.ipVersion); |
| 108 | + } |
| 109 | + } |
| 110 | + |
| 111 | + for (const auto &deviceId : pvcXtVgDeviceIds) { |
| 112 | + for (const auto &[revId, config] : pvcXtVgValues) { |
100 | 113 | device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usDeviceID = deviceId; |
101 | 114 | device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usRevId = revId; |
102 | 115 | device->getProperties(&deviceProperties); |
|
0 commit comments