From 9f3f84ab3c178a040d99df140481e3ee81f415cd Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 22 Jun 2021 19:37:18 +0200 Subject: [PATCH] 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 Acked-by: Mike Blumenkrantz Part-of: (cherry picked from commit 9aff548ff4f6c2d52bfca972050324e0eba043ec) --- .pick_status.json | 2 +- src/gallium/targets/libgl-gdi/libgl_gdi.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 3338a0773be..d396cec37db 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -769,7 +769,7 @@ "description": "libgl-gdi: add missing include", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "fdfe4a4d307377f078a01d05a247c4f61d208be8" }, 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