Do not update task count with not ready status.

- queue blocked status is handled by virtual event not task count.

Change-Id: I8979ba55d2319a75393c639b234dcd86cf2792ae
This commit is contained in:
Mrozek, Michal
2018-01-05 12:07:47 +01:00
committed by sys_ocldev
parent 3eb856b192
commit e9fd40db13
2 changed files with 20 additions and 2 deletions

View File

@@ -354,8 +354,9 @@ cl_int CommandQueue::enqueueReleaseSharedObjects(cl_uint numObjects, const cl_me
void CommandQueue::updateFromCompletionStamp(const CompletionStamp &completionStamp) {
DEBUG_BREAK_IF(this->taskLevel > completionStamp.taskLevel);
DEBUG_BREAK_IF(this->taskCount > completionStamp.taskCount);
taskCount = completionStamp.taskCount;
if (completionStamp.taskCount != Event::eventNotReady) {
taskCount = completionStamp.taskCount;
}
flushStamp->setStamp(completionStamp.flushStamp);
this->taskLevel = completionStamp.taskLevel;
}