mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
fix: re-enable staging buffer copy when ccs is busy
Related-To: NEO-11501 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
720108a12e
commit
a7fbc90ebd
@@ -1619,13 +1619,6 @@ bool CommandQueue::isValidForStagingBufferCopy(Device &device, void *dstPtr, con
|
||||
// Direct transfer from mapped allocation is faster than staging buffer
|
||||
return false;
|
||||
}
|
||||
auto rootDeviceIndex = device.getRootDeviceIndex();
|
||||
auto isLocalMem = device.getMemoryManager()->isLocalMemorySupported(rootDeviceIndex);
|
||||
if (isOOQEnabled() && getGpgpuCommandStreamReceiver().isBusy() && !isLocalMem) {
|
||||
// It's not beneficial to make copy through staging buffers if it's OOQ,
|
||||
// compute engine is busy and device is iGPU.
|
||||
return false;
|
||||
}
|
||||
CsrSelectionArgs csrSelectionArgs{CL_COMMAND_SVM_MEMCPY, nullptr};
|
||||
csrSelectionArgs.direction = TransferDirection::hostToLocal;
|
||||
auto csr = &selectCsrForBuiltinOperation(csrSelectionArgs);
|
||||
|
||||
Reference in New Issue
Block a user