Skip to content

Commit 35d9d9e

Browse files
Do not force resetting SCM properties
Related-To: NEO-6728 Signed-off-by: Filip Hazubski <[email protected]>
1 parent 08d1af7 commit 35d9d9e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

shared/source/command_container/encode_compute_mode_tgllp_and_later.inl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ inline void EncodeComputeMode<Family>::programComputeModeCommandWithSynchronizat
5050
NEO::EncodeWA<Family>::addPipeControlPriorToNonPipelinedStateCommand(csr, args, hwInfo, isRcs);
5151
}
5252

53-
StreamProperties streamProperties{};
54-
streamProperties.stateComputeMode.setProperties(properties);
55-
EncodeComputeMode<Family>::programComputeModeCommand(csr, streamProperties.stateComputeMode, hwInfo);
53+
EncodeComputeMode<Family>::programComputeModeCommand(csr, properties, hwInfo);
5654

5755
if (hasSharedHandles) {
5856
auto pc = csr.getSpaceForCmd<PIPE_CONTROL>();

shared/test/unit_test/xe_hpc_core/compute_mode_tests_xe_hpc_core.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,12 @@ HWTEST2_F(XeHpcComputeModeRequirements, giventhreadArbitrationPolicyWithoutShare
173173
hwParser.parseCommands<FamilyType>(getCsrHw<FamilyType>()->commandStream, startOffset);
174174
bool foundOne = false;
175175

176-
uint32_t expectedCoherentMask = FamilyType::stateComputeModeEuThreadSchedulingModeOverrideMask |
177-
FamilyType::stateComputeModeLargeGrfModeMask |
178-
FamilyType::stateComputeModeForceNonCoherentMask;
176+
uint32_t expectedMask = FamilyType::stateComputeModeEuThreadSchedulingModeOverrideMask;
179177

180178
for (auto it = hwParser.cmdList.begin(); it != hwParser.cmdList.end(); it++) {
181179
auto cmd = genCmdCast<STATE_COMPUTE_MODE *>(*it);
182180
if (cmd) {
183-
EXPECT_EQ(expectedCoherentMask, cmd->getMaskBits());
181+
EXPECT_EQ(expectedMask, cmd->getMaskBits());
184182
EXPECT_FALSE(foundOne);
185183
foundOne = true;
186184
auto pc = genCmdCast<PIPE_CONTROL *>(*(++it));

0 commit comments

Comments
 (0)