Skip to content

Commit c2ee68a

Browse files
performance: enable ULLS on LNL Linux
Related-To: NEO-9004 Signed-off-by: Szymon Morek <[email protected]> Source: f4815a9
1 parent 0e48c2c commit c2ee68a

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

shared/source/xe2_hpg_core/lnl/os_agnostic_product_helper_lnl.inl

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ std::optional<GfxMemoryAllocationMethod> ProductHelperHw<gfxProduct>::getPreferr
3737
return GfxMemoryAllocationMethod::allocateByKmd;
3838
}
3939

40+
template <>
41+
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const {
42+
return true;
43+
}
44+
4045
template <>
4146
bool ProductHelperHw<gfxProduct>::blitEnqueuePreferred(bool isWriteToImageFromBuffer) const {
4247
return isWriteToImageFromBuffer;

shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ uint64_t ProductHelperHw<gfxProduct>::overridePatIndex(bool isUncachedType, uint
3737
return patIndex;
3838
}
3939

40-
template <>
41-
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const {
42-
return true;
43-
}
44-
4540
template <>
4641
bool ProductHelperHw<gfxProduct>::restartDirectSubmissionForHostptrFree() const {
4742
return true;

shared/test/unit_test/xe2_hpg_core/lnl/linux/product_helper_tests_lnl_linux.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenAskedIsKmdMigrationSuppor
6060
EXPECT_FALSE(productHelper->isKmdMigrationSupported());
6161
}
6262

63-
LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenCheckDirectSubmissionSupportedThenFalseIsReturned) {
64-
EXPECT_FALSE(productHelper->isDirectSubmissionSupported(releaseHelper));
65-
}
66-
6763
LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenCheckIsCopyBufferRectSplitSupportedThenReturnsTrue) {
6864
EXPECT_TRUE(productHelper->isCopyBufferRectSplitSupported());
6965
}

shared/test/unit_test/xe2_hpg_core/lnl/product_helper_tests_lnl.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,7 @@ LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsDeviceUsmAllocationR
164164
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) {
165165
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
166166
}
167+
168+
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
169+
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
170+
}

shared/test/unit_test/xe2_hpg_core/lnl/windows/product_helper_tests_lnl_windows.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ using namespace NEO;
1919

2020
using LnlProductHelperWindows = ProductHelperTest;
2121

22-
LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
23-
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
24-
}
25-
2622
LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenDcFlushMitigationThenReturnFalse) {
2723
EXPECT_FALSE(productHelper->mitigateDcFlush());
2824
EXPECT_FALSE(productHelper->isDcFlushMitigated());
@@ -92,4 +88,4 @@ LNLTEST_F(LnlProductHelperWindows, givenOverrideDirectSubmissionTimeoutsCalledTh
9288
productHelper->overrideDirectSubmissionTimeouts(timeout, maxTimeout);
9389
EXPECT_EQ(timeout.count(), 2'000);
9490
EXPECT_EQ(maxTimeout.count(), 3'000);
95-
}
91+
}

0 commit comments

Comments
 (0)