mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
02a2a5e641
commit
9a6bb4be10
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user