From 575e25b7e4cba0d4e289327b15f1235198f27f47 Mon Sep 17 00:00:00 2001 From: tiancyin Date: Mon, 30 Jun 2025 12:11:48 +0800 Subject: [PATCH] wsl/libhsakmt: move IPC functions from device to thunk runtime IPC use system memory, it has nothing to do with wddm device. Reviewed-by: Flora Cui Signed-off-by: tiancyin --- wddm/device.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wddm/device.h b/wddm/device.h index f997fec55c..8e4f783f9a 100644 --- a/wddm/device.h +++ b/wddm/device.h @@ -186,14 +186,6 @@ public: const thunk_proxy::DeviceInfo& DeviceInfo() const { return device_info_; } - ErrorCode ReserveIPCSysMem(gpusize size, - gpusize *out_gpu_virtual_addr, - gpusize alignment, - int &memfd, - bool lock=false); - - ErrorCode FreeIPCSysMem(gpusize gpu_addr, gpusize size, int &memfd); - ErrorCode CreateGpuMemory(const GpuMemoryCreateInfo &create_info, GpuMemory **gpu_mem, gpusize *gpu_va = nullptr); private: @@ -210,8 +202,6 @@ private: void SetPowerOptimization(bool restore); void InitCmdbufInfo(void); - bool CommitSystemHeapSpaceIPC(void* addr, int64_t size, int &fd, bool lock=false); - bool DecommitSystemHeapSpaceIPC(void* addr, int64_t size, int &memfd); D3DKMT_HANDLE adapter_; LUID adapter_luid_;