wsl/hsakmt: use GpuMemory object address as va in physical memory handle case

Signed-off-by: tiancyin <tianci.yin@amd.com>
Dieser Commit ist enthalten in:
tiancyin
2024-09-13 10:06:46 +08:00
committet von Frank Min
Ursprung 6f331de20d
Commit efd0158724
+1 -1
Datei anzeigen
@@ -326,7 +326,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtImportDMABufHandle(int DMABufFd,
auto code = dev->CreateGpuMemory(create_info, &gpu_mem);
if (code == ErrorCode::Success) {
*MemoryAddress = reinterpret_cast<void *>(gpu_mem->GpuAddress());
*MemoryAddress = reinterpret_cast<void *>(gpu_mem);
std::lock_guard<std::mutex> gard(*allocation_map_lock_);
/*
* the gpu_mem->Flags() need convert back from GpuMemoryCreateFlags to