Mesa (main): libgl-gdi: add missing include

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 24 11:31:53 UTC 2021


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Tue Jun 22 19:37:18 2021 +0200

libgl-gdi: add missing include

Without this, I get the following error if I try to compile Zink without
any other drivers:

src/gallium/targets/libgl-gdi/libgl_gdi.c(210): error C2037: left of
'flush_frontbuffer' specifies undefined struct/union 'pipe_screen'

Fixes: fdfe4a4d307 ("libgl-gdi: add zink support")
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11536>

---

 src/gallium/targets/libgl-gdi/libgl_gdi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/targets/libgl-gdi/libgl_gdi.c b/src/gallium/targets/libgl-gdi/libgl_gdi.c
index 119612ba9c5..12ec8ffd744 100644
--- a/src/gallium/targets/libgl-gdi/libgl_gdi.c
+++ b/src/gallium/targets/libgl-gdi/libgl_gdi.c
@@ -41,6 +41,7 @@
 #include "stw_winsys.h"
 #include "stw_device.h"
 #include "gdi/gdi_sw_winsys.h"
+#include "pipe/p_screen.h"
 #include "pipe/p_context.h"
 
 #ifdef GALLIUM_SOFTPIPE



More information about the mesa-commit mailing list