SWDEV-411343 - Import VK buffer memory exported by name.
Change-Id: Idc7c840fcd6bf758ecc29ffd6558d24e5bd0a25b
This commit is contained in:
committed by
Jaydeepkumar Patel
parent
f80985f6a1
commit
9551d48e7f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user