From feb1366f6f93c189dbdc1552e088f66eaf4447b4 Mon Sep 17 00:00:00 2001 From: Dominik Dabek Date: Fri, 16 Dec 2022 13:21:48 +0000 Subject: [PATCH] Disable ocl buffer pool allocator by default, dg2 Related-To: NEO-7332 Signed-off-by: Dominik Dabek --- .../unit_test/xe_hpg_core/dg2/buffer_pool_alloc_tests_dg2.cpp | 4 ++-- .../source/xe_hpg_core/dg2/os_agnostic_hw_info_config_dg2.inl | 2 +- .../unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opencl/test/unit_test/xe_hpg_core/dg2/buffer_pool_alloc_tests_dg2.cpp b/opencl/test/unit_test/xe_hpg_core/dg2/buffer_pool_alloc_tests_dg2.cpp index e9e616a7ce..4987336727 100644 --- a/opencl/test/unit_test/xe_hpg_core/dg2/buffer_pool_alloc_tests_dg2.cpp +++ b/opencl/test/unit_test/xe_hpg_core/dg2/buffer_pool_alloc_tests_dg2.cpp @@ -30,8 +30,8 @@ class AggregatedSmallBuffersDg2DefaultTest : public ContextFixture, } }; -DG2TEST_F(AggregatedSmallBuffersDg2DefaultTest, givenAggregatedSmallBuffersDefaultWhenCheckIfEnabledThenReturnTrue) { - EXPECT_TRUE(pContext->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(pContext)); +DG2TEST_F(AggregatedSmallBuffersDg2DefaultTest, givenAggregatedSmallBuffersDefaultWhenCheckIfEnabledThenReturnFalse) { + EXPECT_FALSE(pContext->getBufferPoolAllocator().isAggregatedSmallBuffersEnabled(pContext)); } DG2TEST_F(AggregatedSmallBuffersDg2DefaultTest, givenAggregatedSmallBuffersDefaultAndMultiDeviceContextWhenCheckIfEnabledThenReturnFalse) { diff --git a/shared/source/xe_hpg_core/dg2/os_agnostic_hw_info_config_dg2.inl b/shared/source/xe_hpg_core/dg2/os_agnostic_hw_info_config_dg2.inl index e9723da80a..5e768a80a6 100644 --- a/shared/source/xe_hpg_core/dg2/os_agnostic_hw_info_config_dg2.inl +++ b/shared/source/xe_hpg_core/dg2/os_agnostic_hw_info_config_dg2.inl @@ -219,7 +219,7 @@ bool ProductHelperHw::isResolveDependenciesByPipeControlsSupported(c template <> bool ProductHelperHw::isBufferPoolAllocatorSupported() const { - return true; + return false; } template <> diff --git a/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp index baed91fbc5..f7579df828 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp @@ -573,5 +573,5 @@ DG2TEST_F(ProductHelperTestDg2, givenDebugFlagWhenCheckingIsResolveDependenciesB DG2TEST_F(ProductHelperTestDg2, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) { auto productHelper = ProductHelper::get(defaultHwInfo->platform.eProductFamily); - EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported()); + EXPECT_FALSE(productHelper->isBufferPoolAllocatorSupported()); }