SWDEV-411343 - Import VK buffer memory exported by name.

Change-Id: Idc7c840fcd6bf758ecc29ffd6558d24e5bd0a25b
This commit is contained in:
Jaydeep Patel
2023-12-13 04:30:34 +00:00
committed by Jaydeepkumar Patel
parent f80985f6a1
commit 9551d48e7f
5 changed files with 26 additions and 6 deletions
+2 -1
View File
@@ -113,7 +113,8 @@ hipError_t hipImportExternalMemory(
#ifdef _WIN32
auto ext_buffer = new (amdContext) amd::ExternalBuffer(amdContext, memHandleDesc->size,
memHandleDesc->handle.win32.handle,
static_cast<amd::ExternalMemory::HandleType>(memHandleDesc->type));
static_cast<amd::ExternalMemory::HandleType>(memHandleDesc->type),
memHandleDesc->handle.win32.name);
#else
auto ext_buffer = new (amdContext) amd::ExternalBuffer(amdContext, memHandleDesc->size,
memHandleDesc->handle.fd,