From b520c6477521c949d9e2cccc24d6a723f5385563 Mon Sep 17 00:00:00 2001 From: Szymon Morek Date: Mon, 7 Oct 2024 14:21:54 +0000 Subject: [PATCH] performance: Enable direct submission on DG2 Windows Signed-off-by: Szymon Morek --- shared/source/xe_hpg_core/windows/product_helper_dg2.cpp | 2 +- .../xe_hpg_core/dg2/windows/product_helper_tests_dg2.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shared/source/xe_hpg_core/windows/product_helper_dg2.cpp b/shared/source/xe_hpg_core/windows/product_helper_dg2.cpp index bd4122845b..074e1b7349 100644 --- a/shared/source/xe_hpg_core/windows/product_helper_dg2.cpp +++ b/shared/source/xe_hpg_core/windows/product_helper_dg2.cpp @@ -23,7 +23,7 @@ namespace NEO { template <> bool ProductHelperHw::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const { - return false; + return true; } template <> diff --git a/shared/test/unit_test/xe_hpg_core/dg2/windows/product_helper_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/windows/product_helper_tests_dg2.cpp index 0bb4404cf0..2c758470a7 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/windows/product_helper_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/windows/product_helper_tests_dg2.cpp @@ -14,4 +14,8 @@ using Dg2ProductHelperWindows = ProductHelperTestWindows; HWTEST2_F(Dg2ProductHelperWindows, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned, IsDG2) { EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported()); +} + +HWTEST2_F(Dg2ProductHelperWindows, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned, IsDG2) { + EXPECT_TRUE(productHelper->isDirectSubmissionSupported(nullptr)); } \ No newline at end of file