libhsakmt: fix resource count in memory export

D3DKMTShareObjects() need resource count paramenter not the allocations count.
There is only one resource no matter how many allocations for a buffer.

Reviewed-by: Longlong Yao <Longlong.Yao@amd.com>
Signed-off-by: tiancyin <tianci.yin@amd.com>
이 커밋은 다음에 포함됨:
tiancyin 작성하고 Frank Min가 2025-11-05 18:53:36 +08:00를 커밋함
1 부모 aff8e508df
커밋 c6627102d3
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -406,7 +406,7 @@ ErrorCode GpuMemory::ExportPhysicalHandle(int* dmabuf_fd, uint32_t flags) {
}
if (IsShared())
return d3dthunk::ShareObjects(num_allocations_, resource_, flags, dmabuf_fd);
return d3dthunk::ShareObjects(1, resource_, flags, dmabuf_fd);
else
return ErrorCode::UnSupported;
}