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

Signed-off-by: tiancyin <tianci.yin@amd.com>
此提交包含在:
tiancyin
2024-09-13 10:06:46 +08:00
提交者 Frank Min
父節點 6f331de20d
當前提交 efd0158724
+1 -1
查看文件
@@ -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