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:
+1
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user