From ecb708fadaf60147cff597d36e0e4753c7ebdf40 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 8 Mar 2019 15:50:58 -0700 Subject: [PATCH] gallium/winsys/kms: fix incomplete type compilation failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: ../src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c: In function ‘kms_sw_displaytarget_from_handle’: ../src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c:402:60: error: dereferencing pointer to incomplete type ‘const struct pipe_resource’ templ->format, ^ Reviewed-by: Mathias Fröhlich --- src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c b/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c index 9564d9424b1..6401f55bbd3 100644 --- a/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c +++ b/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c @@ -43,6 +43,7 @@ #include "pipe/p_compiler.h" #include "pipe/p_format.h" +#include "pipe/p_state.h" #include "util/u_inlines.h" #include "util/u_format.h" #include "util/u_math.h" -- 2.30.2