libgl-gdi: add missing include
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 22 Jun 2021 17:37:18 +0000 (19:37 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 24 Jun 2021 09:30:20 +0000 (09:30 +0000)
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@microsoft.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11536>

src/gallium/targets/libgl-gdi/libgl_gdi.c

index 119612b..12ec8ff 100644 (file)
@@ -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