mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Do not insert PipeControl WA or DC Flush when not needed
Change-Id: I71030273708f243324a566232528bce00a0361df Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ee9eb8df83
commit
33c07c875f
@@ -32,24 +32,6 @@ void CommandStreamReceiverHw<Family>::programComputeMode(LinearStream &stream, D
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
void CommandStreamReceiverHw<Family>::addPipeControlWA(LinearStream &commandStream, bool flushDC) {
|
||||
auto pCmd = (Family::PIPE_CONTROL *)commandStream.getSpace(sizeof(Family::PIPE_CONTROL));
|
||||
*pCmd = Family::cmdInitPipeControl;
|
||||
|
||||
pCmd->setDcFlushEnable(flushDC);
|
||||
pCmd->setCommandStreamerStallEnable(true);
|
||||
}
|
||||
|
||||
template <>
|
||||
int CommandStreamReceiverHw<Family>::getRequiredPipeControlSize() const {
|
||||
return 2 * sizeof(Family::PIPE_CONTROL);
|
||||
}
|
||||
|
||||
template <>
|
||||
void CommandStreamReceiverHw<Family>::addDcFlushToPipeControl(Family::PIPE_CONTROL *pCmd, bool flushDC) {
|
||||
}
|
||||
|
||||
template <>
|
||||
void populateFactoryTable<CommandStreamReceiverHw<Family>>() {
|
||||
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
|
||||
|
||||
@@ -32,4 +32,5 @@ bool HwHelperHw<Family>::setupPreemptionRegisters(HardwareInfo *pHwInfo, bool en
|
||||
template class AubHelperHw<Family>;
|
||||
template class HwHelperHw<Family>;
|
||||
template class FlatBatchBufferHelperHw<Family>;
|
||||
template struct PipeControlHelper<Family>;
|
||||
} // namespace OCLRT
|
||||
|
||||
@@ -14,6 +14,4 @@
|
||||
namespace OCLRT {
|
||||
template struct KernelCommandsHelper<CNLFamily>;
|
||||
|
||||
template <>
|
||||
bool KernelCommandsHelper<CNLFamily>::isPipeControlWArequired() { return true; }
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user