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
Tá an tiomantas seo le fáil i:
German Andryeyev tiomanta 2020-08-07 14:36:50 -04:00
1 tuismitheoir 6f8eaff4df
tiomantas 0dc47d55d2
1 comhad athraithe
+3
+3
Féach ar an gComhad
@@ -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]));