fix: check largeGrfMode in tests if supported

Related-To: NEO-7357

Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
This commit is contained in:
Rafal Maziejuk
2023-03-29 11:22:22 +00:00
committed by Compute-Runtime-Automation
parent 02a2a5e641
commit 9a6bb4be10
2 changed files with 10 additions and 2 deletions

View File

@@ -138,7 +138,11 @@ HWTEST2_F(StreamPropertiesTests, whenSettingStateComputeModePropertiesThenCorrec
for (auto largeGrf : ::testing::Bool()) {
for (auto threadArbitrationPolicy : threadArbitrationPolicyValues) {
properties.stateComputeMode.setPropertiesAll(requiresCoherency, largeGrf ? 256 : 128, threadArbitrationPolicy, preemptionMode);
EXPECT_EQ(largeGrf, properties.stateComputeMode.largeGrfMode.value);
if constexpr (TestTraits<gfxCoreFamily>::largeGrfModeInStateComputeModeSupported) {
EXPECT_EQ(largeGrf, properties.stateComputeMode.largeGrfMode.value);
} else {
EXPECT_EQ(-1, properties.stateComputeMode.largeGrfMode.value);
}
if (scmPropertiesSupport.coherencyRequired) {
EXPECT_EQ(requiresCoherency, properties.stateComputeMode.isCoherencyRequired.value);
} else {

View File

@@ -534,7 +534,11 @@ HWTEST2_F(CommandEncodeStatesTest, givenDispatchInterfaceWhenNumRequiredGrfIsNot
EXPECT_FALSE(streamProperties.stateComputeMode.isDirty());
streamProperties.stateComputeMode.setPropertiesAll(false, 256, 0u, PreemptionMode::Disabled);
EXPECT_TRUE(streamProperties.stateComputeMode.isDirty());
if constexpr (TestTraits<gfxCoreFamily>::largeGrfModeInStateComputeModeSupported) {
EXPECT_TRUE(streamProperties.stateComputeMode.isDirty());
} else {
EXPECT_FALSE(streamProperties.stateComputeMode.isDirty());
}
}
HWCMDTEST_F(IGFX_XE_HP_CORE, CommandEncodeStatesTest, givenInlineDataRequiredWhenEncodingWalkerThenEmitInlineParameterIsSet) {