Do not use blitter for local->local SVM and USM copies

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5549
This commit is contained in:
Maciej Dziuban
2021-02-11 14:30:05 +00:00
committed by Compute-Runtime-Automation
parent f6a0b3c6ce
commit 98ff3cc0a9
6 changed files with 89 additions and 4 deletions

View File

@@ -710,10 +710,15 @@ bool CommandQueue::blitEnqueueAllowed(cl_command_type cmdType) const {
}
}
bool CommandQueue::blitEnqueuePreferred(cl_command_type cmdType) const {
bool CommandQueue::blitEnqueuePreferred(cl_command_type cmdType, const BuiltinOpParams &builtinOpParams) const {
if (cmdType == CL_COMMAND_COPY_BUFFER) {
return DebugManager.flags.PreferCopyEngineForCopyBufferToBuffer.get() == 1;
}
if (cmdType == CL_COMMAND_SVM_MEMCPY &&
builtinOpParams.srcSvmAlloc->isAllocatedInLocalMemoryPool() &&
builtinOpParams.dstSvmAlloc->isAllocatedInLocalMemoryPool()) {
return DebugManager.flags.PreferCopyEngineForCopyBufferToBuffer.get() == 1;
}
return true;
}