Mesa (main): d3d12/wgl/test: Fixes wgl_tests.cpp for d3d12 with mingw

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 3 17:14:15 UTC 2022


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

Author: Yonggang Luo <luoyonggang at gmail.com>
Date:   Sat Apr 30 03:05:23 2022 +0800

d3d12/wgl/test: Fixes wgl_tests.cpp for d3d12 with mingw

wgl needs dxguids/dxguids.h for correct GUID

Signed-off-by: Yonggang Luo <luoyonggang at gmail.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16767>

---

 src/gallium/targets/libgl-gdi/tests/wgl_tests.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/targets/libgl-gdi/tests/wgl_tests.cpp b/src/gallium/targets/libgl-gdi/tests/wgl_tests.cpp
index deda2034b85..f6d56ba3fe7 100644
--- a/src/gallium/targets/libgl-gdi/tests/wgl_tests.cpp
+++ b/src/gallium/targets/libgl-gdi/tests/wgl_tests.cpp
@@ -145,6 +145,7 @@ TEST(wgl, basic_create)
  * the environment isn't set up to run them.
  */
 #include <directx/d3d12.h>
+#include <dxguids/dxguids.h>
 #include <wrl/client.h>
 #include <memory>
 using Microsoft::WRL::ComPtr;



More information about the mesa-commit mailing list