mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
refactor: move update task count and completion stamp to function
Related-To: NEO-7824 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7b689aa464
commit
a4ed483238
@@ -241,6 +241,7 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
|
||||
bool areMultipleSubDevicesInContext,
|
||||
bool setGeneralStateBaseAddress);
|
||||
|
||||
inline CompletionStamp updateTaskCountAndGetCompletionStamp(bool levelClosed);
|
||||
inline void programSamplerCacheFlushBetweenRedescribedSurfaceReads(LinearStream &commandStreamCSR);
|
||||
bool bcsRelaxedOrderingAllowed(const BlitPropertiesContainer &blitPropertiesContainer, bool hasStallingCmds) const;
|
||||
inline void handleImmediateFlushPipelineSelectState(ImmediateDispatchFlags &dispatchFlags, ImmediateFlushData &flushData);
|
||||
|
||||
@@ -702,20 +702,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
|
||||
handleBatchedDispatchImplicitFlush(device.getDeviceInfo().globalMemSize, implicitFlush);
|
||||
}
|
||||
|
||||
++taskCount;
|
||||
DBG_LOG(LogTaskCounts, __FUNCTION__, "Line: ", __LINE__, "taskCount", peekTaskCount());
|
||||
DBG_LOG(LogTaskCounts, __FUNCTION__, "Line: ", __LINE__, "Current taskCount:", tagAddress ? *tagAddress : 0);
|
||||
|
||||
CompletionStamp completionStamp = {
|
||||
taskCount,
|
||||
this->taskLevel,
|
||||
flushStamp->peekStamp()};
|
||||
|
||||
if (levelClosed) {
|
||||
this->taskLevel++;
|
||||
}
|
||||
|
||||
return completionStamp;
|
||||
return updateTaskCountAndGetCompletionStamp(levelClosed);
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
@@ -1895,6 +1882,26 @@ inline void CommandStreamReceiverHw<GfxFamily>::programStateBaseAddressCommon(
|
||||
}
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
inline CompletionStamp CommandStreamReceiverHw<GfxFamily>::updateTaskCountAndGetCompletionStamp(bool levelClosed) {
|
||||
|
||||
++taskCount;
|
||||
|
||||
DBG_LOG(LogTaskCounts, __FUNCTION__, "Line: ", __LINE__, "taskCount", peekTaskCount());
|
||||
DBG_LOG(LogTaskCounts, __FUNCTION__, "Line: ", __LINE__, "Current taskCount:", tagAddress ? *tagAddress : 0);
|
||||
|
||||
CompletionStamp completionStamp = {
|
||||
taskCount,
|
||||
this->taskLevel,
|
||||
flushStamp->peekStamp()};
|
||||
|
||||
if (levelClosed) {
|
||||
this->taskLevel++;
|
||||
}
|
||||
|
||||
return completionStamp;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
inline void CommandStreamReceiverHw<GfxFamily>::programSamplerCacheFlushBetweenRedescribedSurfaceReads(LinearStream &commandStreamCSR) {
|
||||
if (this->samplerCacheFlushRequired != SamplerCacheFlushState::samplerCacheFlushNotRequired) {
|
||||
|
||||
Reference in New Issue
Block a user