From 560e663d5326e122a7c046e5573741bb8945789d Mon Sep 17 00:00:00 2001 From: Compute-Runtime-Validation Date: Tue, 10 Jun 2025 05:41:06 +0200 Subject: [PATCH] Revert "fix: disable L0 USM pool on dg2, ats" This reverts commit 2174389c4e157db5a20e73122806c0cf9e5fccb2. Signed-off-by: Compute-Runtime-Validation --- .../dg2/os_agnostic_product_helper_dg2.inl | 6 ------ .../dg2/product_config_helper_tests_dg2.cpp | 17 ----------------- 2 files changed, 23 deletions(-) diff --git a/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl b/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl index 46dbdf1342..e7bf5e3579 100644 --- a/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl +++ b/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl @@ -6,7 +6,6 @@ */ #include "shared/source/command_stream/command_stream_receiver.h" -#include "shared/source/helpers/api_specific_config.h" #include "shared/source/helpers/gfx_core_helper.h" #include "shared/source/helpers/local_memory_access_modes.h" #include "shared/source/memory_manager/memory_manager.h" @@ -250,9 +249,4 @@ bool ProductHelperHw::isCompressionForbidden(const HardwareInfo &hwI return isCompressionForbiddenCommon(false); } -template <> -bool ProductHelperHw::isDeviceUsmPoolAllocatorSupported() const { - return ApiSpecificConfig::OCL == ApiSpecificConfig::getApiType(); -} - } // namespace NEO diff --git a/shared/test/unit_test/xe_hpg_core/dg2/product_config_helper_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/product_config_helper_tests_dg2.cpp index e0e0f01884..a2e7b2bc80 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/product_config_helper_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/product_config_helper_tests_dg2.cpp @@ -9,7 +9,6 @@ #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/execution_environment/execution_environment.h" #include "shared/source/execution_environment/root_device_environment.h" -#include "shared/source/helpers/api_specific_config.h" #include "shared/source/helpers/compiler_product_helper.h" #include "shared/source/helpers/constants.h" #include "shared/source/helpers/gfx_core_helper.h" @@ -18,7 +17,6 @@ #include "shared/source/xe_hpg_core/hw_cmds_dg2.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/default_hw_info.h" -#include "shared/test/common/helpers/variable_backup.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/unit_test/fixtures/product_config_fixture.h" #include "shared/test/unit_test/os_interface/product_helper_tests.h" @@ -29,10 +27,6 @@ #include -namespace NEO { -extern ApiSpecificConfig::ApiType apiTypeForUlts; -} - using namespace NEO; using ProductConfigHelperDg2Tests = ::testing::Test; using ProductHelperTestDg2 = ProductHelperTest; @@ -830,14 +824,3 @@ DG2TEST_F(ProductHelperTestDg2, givenProductHelperWhenGettingEvictIfNecessaryFla DG2TEST_F(ProductHelperTestDg2, givenProductHelperWhenGettingUseLocalPreferredForCacheableBuffersThenExpectTrue) { EXPECT_TRUE(productHelper->useLocalPreferredForCacheableBuffers()); } - -DG2TEST_F(ProductHelperTestDg2, givenProductHelperWhenCheckingIsDeviceUsmPoolAllocatorSupportedThenCorrectValueIsReturned) { - { - VariableBackup backup(&apiTypeForUlts, ApiSpecificConfig::OCL); - EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported()); - } - { - VariableBackup backup(&apiTypeForUlts, ApiSpecificConfig::L0); - EXPECT_FALSE(productHelper->isDeviceUsmPoolAllocatorSupported()); - } -} \ No newline at end of file