diff --git a/opencl/test/unit_test/gen12lp/dg1/hw_info_tests_dg1.cpp b/opencl/test/unit_test/gen12lp/dg1/hw_info_tests_dg1.cpp index 38f0b8c17f..240115d95e 100644 --- a/opencl/test/unit_test/gen12lp/dg1/hw_info_tests_dg1.cpp +++ b/opencl/test/unit_test/gen12lp/dg1/hw_info_tests_dg1.cpp @@ -6,10 +6,12 @@ */ #include "shared/source/helpers/hw_info.h" +#include "shared/source/os_interface/hw_info_config.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/default_hw_info.h" #include "opencl/test/unit_test/helpers/gtest_helpers.h" +#include "opencl/test/unit_test/os_interface/hw_info_config_tests.h" #include "test.h" using namespace NEO; @@ -28,3 +30,12 @@ TYPED_TEST(Dg1HwInfoTests, WhenSetupHardwareInfoWithSetupFeatureTableFlagTrueOrF TypeParam::setupHardwareInfo(&hwInfo, true); EXPECT_TRUE(featureTable.flags.ftrLocalMemory); } + +HWTEST_EXCLUDE_PRODUCT(HwInfoConfigTest, whenOverrideGfxPartitionLayoutForWslThenReturnFalse, IGFX_DG1); + +using HwInfoConfigTestDG1 = HwInfoConfigTest; + +DG1TEST_F(HwInfoConfigTestDG1, whenOverrideGfxPartitionLayoutForWslThenReturnTrue) { + auto hwInfoConfig = HwInfoConfig::get(pInHwInfo.platform.eProductFamily); + EXPECT_TRUE(hwInfoConfig->overrideGfxPartitionLayoutForWsl()); +} \ No newline at end of file diff --git a/opencl/test/unit_test/os_interface/hw_info_config_tests.cpp b/opencl/test/unit_test/os_interface/hw_info_config_tests.cpp index 64dc2875f1..d56c77e119 100644 --- a/opencl/test/unit_test/os_interface/hw_info_config_tests.cpp +++ b/opencl/test/unit_test/os_interface/hw_info_config_tests.cpp @@ -164,6 +164,11 @@ HWTEST_F(HwInfoConfigTest, whenConvertingTimestampsToCsDomainThenNothingIsChange EXPECT_EQ(initialData, timestampData); } +HWTEST_F(HwInfoConfigTest, whenOverrideGfxPartitionLayoutForWslThenReturnFalse) { + auto hwInfoConfig = HwInfoConfig::get(pInHwInfo.platform.eProductFamily); + EXPECT_FALSE(hwInfoConfig->overrideGfxPartitionLayoutForWsl()); +} + HWTEST_F(HwInfoConfigTest, givenSamplerStateWhenAdjustSamplerStateThenNothingIsChanged) { using SAMPLER_STATE = typename FamilyType::SAMPLER_STATE; auto hwInfoConfig = HwInfoConfig::get(pInHwInfo.platform.eProductFamily); diff --git a/shared/source/gen12lp/linux/hw_info_config_dg1.cpp b/shared/source/gen12lp/linux/hw_info_config_dg1.cpp index c6acbed1ae..11fc078379 100644 --- a/shared/source/gen12lp/linux/hw_info_config_dg1.cpp +++ b/shared/source/gen12lp/linux/hw_info_config_dg1.cpp @@ -30,10 +30,5 @@ int HwInfoConfigHw::configureHardwareCustom(HardwareInfo *hwInfo, OS return 0; } -template <> -bool HwInfoConfigHw::overrideGfxPartitionLayoutForWsl() const { - return true; -} - template class HwInfoConfigHw; } // namespace NEO diff --git a/shared/source/gen12lp/os_agnostic_hw_info_config_dg1.inl b/shared/source/gen12lp/os_agnostic_hw_info_config_dg1.inl index f7b777b732..af13a5478a 100644 --- a/shared/source/gen12lp/os_agnostic_hw_info_config_dg1.inl +++ b/shared/source/gen12lp/os_agnostic_hw_info_config_dg1.inl @@ -56,3 +56,8 @@ template <> bool HwInfoConfigHw::obtainBlitterPreference(const HardwareInfo &hwInfo) const { return true; } + +template <> +bool HwInfoConfigHw::overrideGfxPartitionLayoutForWsl() const { + return true; +}