Make work partition allocation resident

Related-To: NEO-5546

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-03-04 12:37:56 +00:00
committed by Compute-Runtime-Automation
parent 9f3218775d
commit c361570fab
2 changed files with 39 additions and 0 deletions

View File

@@ -506,6 +506,10 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
experimentalCmdBuffer->makeResidentAllocations();
}
if (workPartitionAllocation) {
makeResident(*workPartitionAllocation);
}
// If the CSR has work in its CS, flush it before the task
bool submitTask = commandStreamStartTask != commandStreamTask.getUsed();
bool submitCSR = (commandStreamStartCSR != commandStreamCSR.getUsed()) || this->isMultiOsContextCapable();