From f0520de0686d5c1e4a973c35f1b9fcc023c79193 Mon Sep 17 00:00:00 2001 From: Kamil Kopryk Date: Mon, 19 Jun 2023 13:50:30 +0000 Subject: [PATCH] fix: change failBuildProgramWithStatefulAccessPreference to false on pvc Related-To: NEO-6075 Signed-off-by: Kamil Kopryk --- .../source/xe_hpc_core/enable_compiler_product_helper_pvc.cpp | 2 +- .../xe_hpc_core/pvc/compiler_product_helper_tests_pvc.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/source/xe_hpc_core/enable_compiler_product_helper_pvc.cpp b/shared/source/xe_hpc_core/enable_compiler_product_helper_pvc.cpp index aab9c9bef7..905b069464 100644 --- a/shared/source/xe_hpc_core/enable_compiler_product_helper_pvc.cpp +++ b/shared/source/xe_hpc_core/enable_compiler_product_helper_pvc.cpp @@ -62,7 +62,7 @@ uint32_t CompilerProductHelperHw::matchRevisionIdWithProductConfig(Har template <> bool CompilerProductHelperHw::failBuildProgramWithStatefulAccessPreference() const { - return true; + return false; } static EnableCompilerProductHelper enableCompilerProductHelperPVC; diff --git a/shared/test/unit_test/xe_hpc_core/pvc/compiler_product_helper_tests_pvc.cpp b/shared/test/unit_test/xe_hpc_core/pvc/compiler_product_helper_tests_pvc.cpp index 12f8b00e42..153ea8cab0 100644 --- a/shared/test/unit_test/xe_hpc_core/pvc/compiler_product_helper_tests_pvc.cpp +++ b/shared/test/unit_test/xe_hpc_core/pvc/compiler_product_helper_tests_pvc.cpp @@ -30,9 +30,9 @@ PVCTEST_F(CompilerProductHelperPvcTest, givenPvcConfigsWhenMatchConfigWithRevIdT } } -PVCTEST_F(CompilerProductHelperPvcTest, givenPvcWhenFailBuildProgramWithStatefulAccessPreferenceThenTrueIsReturned) { +PVCTEST_F(CompilerProductHelperPvcTest, givenPvcWhenFailBuildProgramWithStatefulAccessPreferenceThenFalseIsReturned) { MockExecutionEnvironment executionEnvironment{}; auto &rootDeviceEnvironment = *executionEnvironment.rootDeviceEnvironments[0]; auto &compilerProductHelper = rootDeviceEnvironment.getHelper(); - EXPECT_TRUE(compilerProductHelper.failBuildProgramWithStatefulAccessPreference()); + EXPECT_FALSE(compilerProductHelper.failBuildProgramWithStatefulAccessPreference()); }