Debian Codegraph @

shared/test/unit_test/gen12lp/adlp/test_device_caps_adlp.cpp

raw
1 /*
2 * Copyright (C) 2021-2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #include "shared/source/gen12lp/hw_cmds_adlp.h"
9 #include "shared/source/gen12lp/hw_info_adlp.h"
10 #include "shared/test/common/fixtures/device_fixture.h"
11 #include "shared/test/common/mocks/mock_device.h"
12 #include "shared/test/common/test_macros/header/per_product_test_definitions.h"
13 #include "shared/test/common/test_macros/test.h"
14
15 using namespace NEO;
16
17 using AdlpUsDeviceIdTest = Test<DeviceFixture>;
18
19 ADLPTEST_F(AdlpUsDeviceIdTest, givenADLPWhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse) {
20 EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsInteger64BitAtomics);
21 }
22
23 ADLPTEST_F(AdlpUsDeviceIdTest, givenAdlpWhenRequestedVmeFlagsThenReturnFalse) {
24 EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.supportsVme);
25 EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsVmeAvcTextureSampler);
26 EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsVmeAvcPreemption);
27 }