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>
Этот коммит содержится в:
коммит произвёл
Frank Min
родитель
09e1dba40b
Коммит
8663eeaa34
+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;
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
#include "hsakmt/hsakmt.h"
|
||||
#include "hsakmt/hsakmt_drm.h"
|
||||
|
||||
#include "inc/wddm/types.h"
|
||||
#include "inc/wddm/device.h"
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <cstdio>
|
||||
#include <strings.h>
|
||||
#include <cassert>
|
||||
#include <amdgpu.h>
|
||||
#include "libhsakmt.h"
|
||||
|
||||
static const char dxg_device_name[] = "/dev/dxg";
|
||||
|
||||
@@ -37,10 +37,6 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
#include <xf86drm.h>
|
||||
#include <amdgpu.h>
|
||||
#include <amdgpu_drm.h>
|
||||
|
||||
#include "libhsakmt.h"
|
||||
#include "inc/wddm/types.h"
|
||||
#include "inc/wddm/device.h"
|
||||
|
||||
Ссылка в новой задаче
Block a user