libhsakmt: update HsaPointerInfo for address-only allocated VRAM.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Ib88b34dff772997d2b2e5f3c7e333cef3092ef56


[ROCm/ROCR-Runtime commit: 11ac57d293]
This commit is contained in:
Xiaogang Chen
2022-10-31 22:06:28 -05:00
committed by Xiaogang Chen
parent a7ccb14b9c
commit 038916c727
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -3963,6 +3963,8 @@ HSAKMT_STATUS fmm_get_mem_info(const void *address, HsaPointerInfo *info)
info->Type = HSA_POINTER_REGISTERED_GRAPHICS;
else if (vm_obj->userptr)
info->Type = HSA_POINTER_REGISTERED_USER;
else if (vm_obj->handle == 0)
info->Type = HSA_POINTER_RESERVED_ADDR;
else
info->Type = HSA_POINTER_ALLOCATED;