Module: Mesa
Branch: main
Commit: e568ef122a35e8c71f69b0623ec5d98993decce4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e568ef122a35e8c71f69b0623ec5d98993decce4

Author: Yonggang Luo <luoyongg...@gmail.com>
Date:   Tue Dec  5 02:00:41 2023 +0800

d3d12,dzn: Simplify the usage of #include <wsl/winadapter.h>

Now wsl/winadapter.h are platform independent

Signed-off-by: Yonggang Luo <luoyongg...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26508>

---

 src/gallium/drivers/d3d12/d3d12_common.h        | 4 ----
 src/microsoft/vulkan/dzn_physical_device_enum.h | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/src/gallium/drivers/d3d12/d3d12_common.h 
b/src/gallium/drivers/d3d12/d3d12_common.h
index 9defde858e3..4fa900d1585 100644
--- a/src/gallium/drivers/d3d12/d3d12_common.h
+++ b/src/gallium/drivers/d3d12/d3d12_common.h
@@ -26,11 +26,7 @@
 
 #pragma once
 
-#ifndef _WIN32
 #include <wsl/winadapter.h>
-#else
-#include <unknwn.h>
-#endif
 
 #define D3D12_IGNORE_SDK_LAYERS
 #ifndef _GAMING_XBOX
diff --git a/src/microsoft/vulkan/dzn_physical_device_enum.h 
b/src/microsoft/vulkan/dzn_physical_device_enum.h
index 3dc31f825e1..7ecc5d34630 100644
--- a/src/microsoft/vulkan/dzn_physical_device_enum.h
+++ b/src/microsoft/vulkan/dzn_physical_device_enum.h
@@ -26,11 +26,7 @@
 
 #include <vulkan/vulkan.h>
 
-#include <unknwn.h>
-
-#ifndef _WIN32
 #include <wsl/winadapter.h>
-#endif
 
 #include <stdbool.h>
 

Reply via email to