wsl: drop libdrm dependency

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Shi.Leslie <Yuliang.Shi@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/2>

wsl/libhsakmt: move drm headers to dedicated directory

to maintain a clean and organized codebase.

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Horatio Zhang <Hongkun.Zhang@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/3>
This commit is contained in:
Flora Cui
2024-10-30 12:37:39 +08:00
committed by Frank Min
parent 09e1dba40b
commit 8663eeaa34
4 changed files with 2 additions and 9 deletions
+1 -4
View File
@@ -40,9 +40,6 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cstdint>
#include <xf86drm.h>
#include <amdgpu.h>
#include <amdgpu_drm.h>
#include "inc/wddm/types.h"
#include "inc/wddm/device.h"
@@ -106,7 +103,7 @@ HSAKMTAPI int amdgpu_bo_import(amdgpu_device_handle dev,
HSAKMT_STATUS ret = hsaKmtImportDMABufHandle(shared_handle, &MemoryAddress);
if (ret == HSAKMT_STATUS_SUCCESS) {
//use GpuMemory object's address as drm buf handle
output->buf_handle = reinterpret_cast<amdgpu_bo*>(MemoryAddress);
output->buf_handle = reinterpret_cast<amdgpu_bo_handle>(MemoryAddress);
return 0;
} else {
return -1;