diff --git a/shared/test/unit_test/command_stream/stream_properties_tests_common.cpp b/shared/test/unit_test/command_stream/stream_properties_tests_common.cpp index fa72df5018..c885d2e68f 100644 --- a/shared/test/unit_test/command_stream/stream_properties_tests_common.cpp +++ b/shared/test/unit_test/command_stream/stream_properties_tests_common.cpp @@ -138,11 +138,7 @@ HWTEST2_F(StreamPropertiesTests, whenSettingStateComputeModePropertiesThenCorrec for (auto largeGrf : ::testing::Bool()) { for (auto threadArbitrationPolicy : threadArbitrationPolicyValues) { properties.stateComputeMode.setPropertiesAll(requiresCoherency, largeGrf ? 256 : 128, threadArbitrationPolicy, preemptionMode); - if constexpr (TestTraits::largeGrfModeInStateComputeModeSupported) { - EXPECT_EQ(largeGrf, properties.stateComputeMode.largeGrfMode.value); - } else { - EXPECT_EQ(-1, properties.stateComputeMode.largeGrfMode.value); - } + EXPECT_EQ(largeGrf, properties.stateComputeMode.largeGrfMode.value); if (scmPropertiesSupport.coherencyRequired) { EXPECT_EQ(requiresCoherency, properties.stateComputeMode.isCoherencyRequired.value); } else { diff --git a/shared/test/unit_test/encoders/test_encode_dispatch_kernel_xehp_and_later.cpp b/shared/test/unit_test/encoders/test_encode_dispatch_kernel_xehp_and_later.cpp index f9720ad369..d00b019a9b 100644 --- a/shared/test/unit_test/encoders/test_encode_dispatch_kernel_xehp_and_later.cpp +++ b/shared/test/unit_test/encoders/test_encode_dispatch_kernel_xehp_and_later.cpp @@ -534,11 +534,7 @@ HWTEST2_F(CommandEncodeStatesTest, givenDispatchInterfaceWhenNumRequiredGrfIsNot EXPECT_FALSE(streamProperties.stateComputeMode.isDirty()); streamProperties.stateComputeMode.setPropertiesAll(false, 256, 0u, PreemptionMode::Disabled); - if constexpr (TestTraits::largeGrfModeInStateComputeModeSupported) { - EXPECT_TRUE(streamProperties.stateComputeMode.isDirty()); - } else { - EXPECT_FALSE(streamProperties.stateComputeMode.isDirty()); - } + EXPECT_TRUE(streamProperties.stateComputeMode.isDirty()); } HWCMDTEST_F(IGFX_XE_HP_CORE, CommandEncodeStatesTest, givenInlineDataRequiredWhenEncodingWalkerThenEmitInlineParameterIsSet) {