Update flushed task count when task count write was dispatched

Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2022-04-04 17:10:18 +00:00
committed by Compute-Runtime-Automation
parent 933fbd4f63
commit 335bf2fdb2
2 changed files with 58 additions and 0 deletions

View File

@@ -460,6 +460,9 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
anyCommandListWithCooperativeKernels);
this->taskCount = csr->peekTaskCount();
if (dispatchPostSync) {
csr->setLatestFlushedTaskCount(this->taskCount);
}
csr->makeSurfacePackNonResident(csr->getResidencyAllocations());