mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Add helper method to obtain TimestampPacket for cache flush
Change-Id: Ie0f3b72adc0ca5c8158b44d2b0740f20adf33fa0 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
54b2763466
commit
8a791f5874
@@ -442,6 +442,8 @@ class CommandQueueHw : public CommandQueue {
|
|||||||
TimestampPacketDependencies ×tampPacketDependencies, const EventsRequest &eventsRequest,
|
TimestampPacketDependencies ×tampPacketDependencies, const EventsRequest &eventsRequest,
|
||||||
bool queueBlocked);
|
bool queueBlocked);
|
||||||
|
|
||||||
|
bool obtainTimestampPacketForCacheFlush(bool isCacheFlushCommand) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool isTaskLevelUpdateRequired(const uint32_t &taskLevel, const cl_event *eventWaitList, const cl_uint &numEventsInWaitList, unsigned int commandType);
|
bool isTaskLevelUpdateRequired(const uint32_t &taskLevel, const cl_event *eventWaitList, const cl_uint &numEventsInWaitList, unsigned int commandType);
|
||||||
void obtainTaskLevelAndBlockedStatus(unsigned int &taskLevel, cl_uint &numEventsInWaitList, const cl_event *&eventWaitList, bool &blockQueueStatus, unsigned int commandType) override;
|
void obtainTaskLevelAndBlockedStatus(unsigned int &taskLevel, cl_uint &numEventsInWaitList, const cl_event *&eventWaitList, bool &blockQueueStatus, unsigned int commandType) override;
|
||||||
|
|||||||
@@ -138,4 +138,9 @@ void CommandQueueHw<Family>::setupBlitAuxTranslation(MultiDispatchInfo &multiDis
|
|||||||
TimestampPacketHelper::getRequiredCmdStreamSizeForAuxTranslationNodeDependency<Family>);
|
TimestampPacketHelper::getRequiredCmdStreamSizeForAuxTranslationNodeDependency<Family>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename Family>
|
||||||
|
bool CommandQueueHw<Family>::obtainTimestampPacketForCacheFlush(bool isCacheFlushCommand) const {
|
||||||
|
return isCacheFlushCommand;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace NEO
|
} // namespace NEO
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
|
|||||||
eventsRequest.fillCsrDependencies(csrDeps, getGpgpuCommandStreamReceiver(), CsrDependencies::DependenciesType::OnCsr);
|
eventsRequest.fillCsrDependencies(csrDeps, getGpgpuCommandStreamReceiver(), CsrDependencies::DependenciesType::OnCsr);
|
||||||
|
|
||||||
size_t nodesCount = 0u;
|
size_t nodesCount = 0u;
|
||||||
if (blitEnqueue || isCacheFlushCommand(commandType)) {
|
if (blitEnqueue || obtainTimestampPacketForCacheFlush(isCacheFlushCommand(commandType))) {
|
||||||
nodesCount = 1;
|
nodesCount = 1;
|
||||||
} else if (!multiDispatchInfo.empty()) {
|
} else if (!multiDispatchInfo.empty()) {
|
||||||
nodesCount = estimateTimestampPacketNodesCount(multiDispatchInfo);
|
nodesCount = estimateTimestampPacketNodesCount(multiDispatchInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user