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

Signed-off-by: tiancyin <tianci.yin@amd.com>
Этот коммит содержится в:
tiancyin authored and Frank Min committed 2025-11-05 18:53:35 +08:00
1 родитель 6f331de20d
Коммит efd0158724
1 file changed
+1 -1
+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