|
1 | 1 | /* |
2 | | - * Copyright (C) 2020-2021 Intel Corporation |
| 2 | + * Copyright (C) 2020-2022 Intel Corporation |
3 | 3 | * |
4 | 4 | * SPDX-License-Identifier: MIT |
5 | 5 | * |
|
10 | 10 | #include "shared/test/common/helpers/default_hw_info.h" |
11 | 11 | #include "shared/test/common/test_macros/test.h" |
12 | 12 |
|
13 | | -#include "opencl/source/helpers/hardware_commands_helper.h" |
14 | | - |
15 | 13 | using namespace NEO; |
16 | 14 |
|
17 | 15 | using Dg1HwInfoConfig = ::testing::Test; |
@@ -107,30 +105,13 @@ DG1TEST_F(Dg1HwInfo, whenPlatformIsDg1ThenExpectSvmIsSet) { |
107 | 105 | EXPECT_TRUE(hardwareInfo.capabilityTable.ftrSvm); |
108 | 106 | } |
109 | 107 |
|
110 | | -DG1TEST_F(Dg1HwInfo, givenDg1WhenObtainingBlitterPreferenceThenReturnTrue) { |
111 | | - const auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily); |
112 | | - const auto &hardwareInfo = DG1::hwInfo; |
113 | | - |
114 | | - EXPECT_TRUE(hwInfoConfig.obtainBlitterPreference(hardwareInfo)); |
115 | | -} |
116 | | - |
117 | 108 | DG1TEST_F(Dg1HwInfo, givenDg1WhenObtainingFullBlitterSupportThenReturnFalse) { |
118 | 109 | const auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily); |
119 | 110 | const auto &hardwareInfo = DG1::hwInfo; |
120 | 111 |
|
121 | 112 | EXPECT_FALSE(hwInfoConfig.isBlitterFullySupported(hardwareInfo)); |
122 | 113 | } |
123 | 114 |
|
124 | | -DG1TEST_F(Dg1HwInfo, whenConfigureHwInfoThenBlitterSupportIsEnabled) { |
125 | | - auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily); |
126 | | - auto hardwareInfo = *defaultHwInfo; |
127 | | - |
128 | | - hardwareInfo.capabilityTable.blitterOperationsSupported = false; |
129 | | - hwInfoConfig.configureHardwareCustom(&hardwareInfo, nullptr); |
130 | | - |
131 | | - EXPECT_TRUE(hardwareInfo.capabilityTable.blitterOperationsSupported); |
132 | | -} |
133 | | - |
134 | 115 | DG1TEST_F(Dg1HwInfo, whenOverrideGfxPartitionLayoutForWslThenReturnTrue) { |
135 | 116 | auto hwInfoConfig = HwInfoConfig::get(defaultHwInfo->platform.eProductFamily); |
136 | 117 | EXPECT_TRUE(hwInfoConfig->overrideGfxPartitionLayoutForWsl()); |
|
0 commit comments