SWDEV-335626 - Use ROCr copy for IPC

Detect IPC buffer and use ROCr copy api instead of blit

Change-Id: Ie6bdd6fc45dbd7457611011d81570b53d5fd5276


[ROCm/clr commit: faaa41aab8]
This commit is contained in:
Saleel Kudchadker
2022-06-28 00:55:40 -07:00
parent f58725904c
commit 7fd80925cd
3 changed files with 11 additions and 2 deletions
@@ -2184,7 +2184,7 @@ bool Device::IpcAttach(const void* handle, size_t mem_size, size_t mem_offset,
amd_mem_obj->release();
return false;
}
amd_mem_obj->setIpcShared(true);
// Add the original mem_ptr to the MemObjMap with newly created amd_mem_obj
amd::MemObjMap::AddMemObj(orig_dev_ptr, amd_mem_obj);