Skip to content

Commit 9d69c70

Browse files
kgibalaCompute-Runtime-Automation
authored andcommitted
Program PIPE CONTROL before _3DSTATE_BTD
Related-To: NEO-6056 Signed-off-by: Krzysztof Gibala <[email protected]>
1 parent 0b64ecb commit 9d69c70

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

shared/source/command_stream/command_stream_receiver_hw.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
159159
void addPipeControlCmd(LinearStream &commandStream, PipeControlArgs &args);
160160
void addPipeControlBeforeStateBaseAddress(LinearStream &commandStream);
161161
void addPipeControlBeforeStateSip(LinearStream &commandStream, Device &device);
162+
void addPipeControlBefore3dState(LinearStream &commandStream, DispatchFlags &dispatchFlags);
162163
void addPipeControlPriorToNonPipelinedStateCommand(LinearStream &commandStream, PipeControlArgs args);
163164
size_t getSshHeapSize();
164165
bool are4GbHeapsAvailable() const;

shared/source/command_stream/command_stream_receiver_hw_base.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
350350
programL3(commandStreamCSR, dispatchFlags, newL3Config);
351351
programPreamble(commandStreamCSR, device, dispatchFlags, newL3Config);
352352
programMediaSampler(commandStreamCSR, dispatchFlags);
353+
addPipeControlBefore3dState(commandStreamCSR, dispatchFlags);
353354
programPerDssBackedBuffer(commandStreamCSR, device, dispatchFlags);
354355

355356
if (this->lastSentThreadArbitrationPolicy != this->requiredThreadArbitrationPolicy) {

shared/source/command_stream/command_stream_receiver_hw_bdw_and_later.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ inline void CommandStreamReceiverHw<GfxFamily>::addPipeControlBeforeStateBaseAdd
106106
template <typename GfxFamily>
107107
inline void CommandStreamReceiverHw<GfxFamily>::addPipeControlBeforeStateSip(LinearStream &commandStream, Device &device) {}
108108

109+
template <typename GfxFamily>
110+
inline void CommandStreamReceiverHw<GfxFamily>::addPipeControlBefore3dState(LinearStream &commandStream, DispatchFlags &dispatchFlags) {}
111+
109112
template <typename GfxFamily>
110113
bool CommandStreamReceiverHw<GfxFamily>::checkPlatformSupportsNewResourceImplicitFlush() const {
111114
return false;

shared/source/xe_hp_core/command_stream_receiver_hw_xe_hp_core.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ size_t CommandStreamReceiverHw<Family>::getCmdSizeForPerDssBackedBuffer(const Ha
6868
return 0;
6969
}
7070

71+
template <>
72+
void CommandStreamReceiverHw<Family>::addPipeControlBefore3dState(LinearStream &commandStream, DispatchFlags &dispatchFlags) {}
73+
7174
template <>
7275
void BlitCommandsHelper<Family>::appendClearColor(const BlitProperties &blitProperties, typename Family::XY_COPY_BLT &blitCmd) {
7376
using XY_COPY_BLT = typename Family::XY_COPY_BLT;

0 commit comments

Comments
 (0)