Skip to content

Commit 3952159

Browse files
hongkzha-amdfcui-amd
authored andcommitted
librocdxg: Return DXG fd in amdgpu_device_get_fd
Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com> Reviewed-by: Flora Cui <flora.cui@amd.com>
1 parent 652b0bd commit 3952159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libdrm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ HSAKMTAPI int amdgpu_query_gpu_info(amdgpu_device_handle dev,
7777
}
7878

7979
HSAKMTAPI int amdgpu_device_get_fd(amdgpu_device_handle dev) {
80-
return 0;
80+
return dxg_runtime->dxg_fd;
8181
}
8282

8383
HSAKMTAPI int amdgpu_bo_cpu_map(amdgpu_bo_handle bo, void **cpu) {

0 commit comments

Comments
 (0)