Blit command size estimates with additional size for synchronization

Related-To: NEO-4227

Change-Id: Id6935bdecee7d3c395c6ae1917706268acb26932
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2020-02-10 18:14:52 +01:00
committed by sys_ocldev
parent df59101dae
commit a1753053ed
11 changed files with 37 additions and 14 deletions

View File

@@ -816,7 +816,7 @@ uint32_t CommandStreamReceiverHw<GfxFamily>::blitBuffer(const BlitPropertiesCont
auto lock = obtainUniqueOwnership();
auto &commandStream = getCS(BlitCommandsHelper<GfxFamily>::estimateBlitCommandsSize(blitPropertiesContainer));
auto &commandStream = getCS(BlitCommandsHelper<GfxFamily>::estimateBlitCommandsSize(blitPropertiesContainer, peekHwInfo()));
auto commandStreamStart = commandStream.getUsed();
auto newTaskCount = taskCount + 1;
latestSentTaskCount = newTaskCount;
@@ -840,7 +840,7 @@ uint32_t CommandStreamReceiverHw<GfxFamily>::blitBuffer(const BlitPropertiesCont
makeResident(*blitProperties.dstAllocation);
}
HardwareCommandsHelper<GfxFamily>::programGlobalFence(commandStream);
PipeControlHelper<GfxFamily>::addSynchronizationWA(commandStream, tagAllocation->getGpuAddress(), peekHwInfo());
HardwareCommandsHelper<GfxFamily>::programMiFlushDw(commandStream, tagAllocation->getGpuAddress(), newTaskCount);

View File

@@ -149,7 +149,6 @@ struct HardwareCommandsHelper : public PerThreadDataHelper {
uint64_t compareAddress,
uint32_t compareData,
COMPARE_OPERATION compareMode);
static void programGlobalFence(LinearStream &commandStream);
static void programMiFlushDw(LinearStream &commandStream, uint64_t immediateDataGpuAddress, uint64_t immediateData);
static void appendMiFlushDw(typename GfxFamily::MI_FLUSH_DW *miFlushDwCmd);
static MI_ATOMIC *programMiAtomic(LinearStream &commandStream, uint64_t writeAddress, typename MI_ATOMIC::ATOMIC_OPCODES opcode, typename MI_ATOMIC::DATA_SIZE dataSize);

View File

@@ -490,8 +490,4 @@ void HardwareCommandsHelper<GfxFamily>::programMiFlushDw(LinearStream &commandSt
miFlushDwCmd->setImmediateData(immediateData);
appendMiFlushDw(miFlushDwCmd);
}
template <typename GfxFamily>
void HardwareCommandsHelper<GfxFamily>::programGlobalFence(LinearStream &commandStream) {
}
} // namespace NEO