| 1 |
/* |
| 2 |
* Copyright (C) 2022-2023 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "shared/source/gen12lp/hw_cmds_adln.h" |
| 9 |
#include "shared/source/gen12lp/hw_info_adln.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 AdlnUsDeviceIdTest = Test<DeviceFixture>; |
| 18 |
|
| 19 |
ADLNTEST_F(AdlnUsDeviceIdTest, givenAdlnWhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse) { |
| 20 |
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsInteger64BitAtomics); |
| 21 |
} |
| 22 |
|
| 23 |
ADLNTEST_F(AdlnUsDeviceIdTest, givenAdlnWhenRequestedVmeFlagsThenReturnFalse) { |
| 24 |
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.supportsVme); |
| 25 |
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsVmeAvcTextureSampler); |
| 26 |
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsVmeAvcPreemption); |
| 27 |
} |