Sync the current queue for P2P staging

P2P staging uses device queues for transfer, hence the current
queue must be in sync

Change-Id: I8372a60590eed9dde62cb4c67ef4df5df82a8e8d
此提交包含在:
German Andryeyev committed 2020-08-07 14:36:50 -04:00
1 父節點 6f8eaff4df
當前提交 0dc47d55d2
1 file changed
+3
+3
查看文件
@@ -1451,6 +1451,9 @@ void VirtualGPU::submitCopyMemoryP2P(amd::CopyMemoryP2PCommand& cmd) {
size, cmd.isEntireMemory());
}
else {
// Sync the current queue, since P2P staging uses the device queues for transfer
releaseGpuMemoryFence();
amd::ScopedLock lock(dev().P2PStageOps());
Memory* dstStgMem = static_cast<Memory*>(
dev().P2PStage()->getDeviceMemory(*cmd.source().getContext().devices()[0]));