Skip to content

Commit b7d21b1

Browse files
jabradCompute-Runtime-Automation
authored andcommitted
performance: enable Direct Submission on LNL Linux
Related-To: NEO-9004 Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
1 parent d4a275f commit b7d21b1

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

shared/source/xe2_hpg_core/lnl/os_agnostic_product_helper_lnl.inl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ std::optional<GfxMemoryAllocationMethod> ProductHelperHw<gfxProduct>::getPreferr
3535
return GfxMemoryAllocationMethod::allocateByKmd;
3636
}
3737

38+
template <>
39+
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const {
40+
return true;
41+
}
42+
3843
template <>
3944
bool ProductHelperHw<gfxProduct>::blitEnqueuePreferred(bool isWriteToImageFromBuffer) const {
4045
return isWriteToImageFromBuffer;

shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Intel Corporation
2+
* Copyright (C) 2024-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -47,11 +47,6 @@ uint64_t ProductHelperHw<gfxProduct>::overridePatIndex(bool isUncachedType, uint
4747
return patIndex;
4848
}
4949

50-
template <>
51-
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const {
52-
return true;
53-
}
54-
5550
template <>
5651
bool ProductHelperHw<gfxProduct>::restartDirectSubmissionForHostptrFree() const {
5752
return true;

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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,7 @@ LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsDeviceUsmAllocationR
157157
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) {
158158
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
159159
}
160+
161+
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
162+
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
163+
}

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Intel Corporation
2+
* Copyright (C) 2024-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -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());
@@ -76,4 +72,4 @@ LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenOverridePatIndexCalledT
7672

7773
LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenCheckIsCopyBufferRectSplitSupportedThenReturnsTrue) {
7874
EXPECT_TRUE(productHelper->isCopyBufferRectSplitSupported());
79-
}
75+
}

0 commit comments

Comments
 (0)