Skip to content

Commit e348001

Browse files
Adjust PIPELINE_SELECT programming on tgllp
Signed-off-by: Sebastian Luzynski <[email protected]>
1 parent cf8e326 commit e348001

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,11 +2181,11 @@ void CommandListCoreFamily<gfxCoreFamily>::updateStreamProperties(Kernel &kernel
21812181
auto threadArbitrationPolicy = hwHelper.getDefaultThreadArbitrationPolicy();
21822182
finalStreamState.stateComputeMode.setProperties(false, kernelAttributes.numGrfRequired, threadArbitrationPolicy);
21832183

2184-
NEO::EncodeWA<GfxFamily>::encodeAdditionalPipelineSelect(neoDevice, *commandContainer.getCommandStream(), true);
21852184
if (finalStreamState.stateComputeMode.isDirty()) {
2185+
NEO::EncodeWA<GfxFamily>::encodeAdditionalPipelineSelect(neoDevice, *commandContainer.getCommandStream(), true);
21862186
NEO::EncodeComputeMode<GfxFamily>::adjustComputeMode(*commandContainer.getCommandStream(), nullptr, finalStreamState.stateComputeMode, hwInfo);
2187+
NEO::EncodeWA<GfxFamily>::encodeAdditionalPipelineSelect(neoDevice, *commandContainer.getCommandStream(), false);
21872188
}
2188-
NEO::EncodeWA<GfxFamily>::encodeAdditionalPipelineSelect(neoDevice, *commandContainer.getCommandStream(), false);
21892189
}
21902190

21912191
template <GFXCORE_FAMILY gfxCoreFamily>

shared/source/command_container/command_encoder_bdw_and_later.inl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ void EncodeStateBaseAddress<Family>::encode(CommandContainer &container, STATE_B
360360

361361
template <typename Family>
362362
void EncodeStateBaseAddress<Family>::encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd, uint32_t statelessMocsIndex, bool useGlobalAtomics) {
363-
EncodeWA<Family>::encodeAdditionalPipelineSelect(*container.getDevice(), *container.getCommandStream(), true);
363+
if (container.isAnyHeapDirty()) {
364+
EncodeWA<Family>::encodeAdditionalPipelineSelect(*container.getDevice(), *container.getCommandStream(), true);
365+
}
364366

365367
auto gmmHelper = container.getDevice()->getGmmHelper();
366368

0 commit comments

Comments
 (0)