Skip to content

Commit c612480

Browse files
Add DG2 device ids
Signed-off-by: Bartosz Dunajski <[email protected]>
1 parent de0361c commit c612480

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

opencl/test/unit_test/xe_hpg_core/dg2/linux/dll/device_id_tests_dg2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using namespace NEO;
1111

1212
TEST_F(DeviceIdTests, GivenDg2SupportedDeviceIdThenDeviceDescriptorTableExists) {
13-
std::array<DeviceDescriptor, 18> expectedDescriptors = {{
13+
std::array<DeviceDescriptor, 20> expectedDescriptors = {{
1414
{0x4F80, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
1515
{0x4F81, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
1616
{0x4F82, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
@@ -29,6 +29,8 @@ TEST_F(DeviceIdTests, GivenDg2SupportedDeviceIdThenDeviceDescriptorTableExists)
2929
{0x56A2, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
3030
{0x56A5, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
3131
{0x56A6, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
32+
{0x56C0, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
33+
{0x56C1, &DG2_CONFIG::hwInfo, &DG2_CONFIG::setupHardwareInfo},
3234
}};
3335

3436
testImpl(expectedDescriptors);

shared/source/dll/devices/devices_additional.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ DEVICE(0x56A1, DG2_CONFIG)
3232
DEVICE(0x56A2, DG2_CONFIG)
3333
DEVICE(0x56A5, DG2_CONFIG)
3434
DEVICE(0x56A6, DG2_CONFIG)
35+
DEVICE(0x56C0, DG2_CONFIG)
36+
DEVICE(0x56C1, DG2_CONFIG)
3537
#endif
3638
#endif
3739

0 commit comments

Comments
 (0)