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

Change-Id: Idc7c840fcd6bf758ecc29ffd6558d24e5bd0a25b


[ROCm/clr commit: 9551d48e7f]
This commit is contained in:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2023-12-14 22:16:11 -05:00
1 parent 32b402f11a
commit 526e60cb70
5 files changed
+26 -6

No files matched your search

+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,