Skip to content

Commit 371358c

Browse files
Enable blitter for DG1+WSL&Linux
Related-To: NEO-6710, NEO-6685 Signed-off-by: Kamil Diedrich <[email protected]>
1 parent ba2c973 commit 371358c

File tree

7 files changed

+22
-93
lines changed

7 files changed

+22
-93
lines changed

shared/source/gen12lp/os_agnostic_hw_info_config_dg1.inl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ bool HwInfoConfigHw<gfxProduct>::isForceEmuInt32DivRemSPWARequired(const Hardwar
4242
return HwHelper::get(hwInfo.platform.eRenderCoreFamily).isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo);
4343
}
4444

45+
template <>
46+
bool HwInfoConfigHw<gfxProduct>::obtainBlitterPreference(const HardwareInfo &hwInfo) const {
47+
return true;
48+
}
49+
4550
template <>
4651
bool HwInfoConfigHw<gfxProduct>::is3DPipelineSelectWARequired() const {
4752
return true;

shared/source/gen12lp/windows/hw_info_config_dg1.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,5 @@ void HwInfoConfigHw<gfxProduct>::setCapabilityCoherencyFlag(const HardwareInfo &
2121
coherencyFlag = false;
2222
}
2323

24-
template <>
25-
bool HwInfoConfigHw<gfxProduct>::obtainBlitterPreference(const HardwareInfo &hwInfo) const {
26-
return true;
27-
}
28-
2924
template class HwInfoConfigHw<gfxProduct>;
3025
} // namespace NEO

shared/test/unit_test/gen12lp/dg1/linux/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

shared/test/unit_test/gen12lp/dg1/linux/test_hw_info_config_dg1_linux.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

shared/test/unit_test/gen12lp/dg1/test_hw_info_config_dg1.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,28 @@ DG1TEST_F(Dg1HwInfo, givenBoolWhenCallDg1HardwareInfoSetupThenFeatureTableAndWor
100100
}
101101
}
102102

103+
DG1TEST_F(Dg1HwInfo, givenDg1WhenObtainingBlitterPreferenceThenReturnTrue) {
104+
const auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily);
105+
const auto &hardwareInfo = DG1::hwInfo;
106+
107+
EXPECT_TRUE(hwInfoConfig.obtainBlitterPreference(hardwareInfo));
108+
}
109+
103110
DG1TEST_F(Dg1HwInfo, whenPlatformIsDg1ThenExpectSvmIsSet) {
104111
const HardwareInfo &hardwareInfo = DG1::hwInfo;
105112
EXPECT_TRUE(hardwareInfo.capabilityTable.ftrSvm);
106113
}
107114

115+
DG1TEST_F(Dg1HwInfo, whenConfigureHwInfoThenBlitterSupportIsEnabled) {
116+
auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily);
117+
auto hardwareInfo = *defaultHwInfo;
118+
119+
hardwareInfo.capabilityTable.blitterOperationsSupported = false;
120+
hwInfoConfig.configureHardwareCustom(&hardwareInfo, nullptr);
121+
122+
EXPECT_TRUE(hardwareInfo.capabilityTable.blitterOperationsSupported);
123+
}
124+
108125
DG1TEST_F(Dg1HwInfo, givenDg1WhenObtainingFullBlitterSupportThenReturnFalse) {
109126
const auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily);
110127
const auto &hardwareInfo = DG1::hwInfo;

shared/test/unit_test/gen12lp/dg1/windows/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

shared/test/unit_test/gen12lp/dg1/windows/test_hw_info_config_dg1_windows.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)