From: Brian Paul Date: Fri, 8 Mar 2019 22:50:58 +0000 (-0700) Subject: gallium/winsys/kms: fix incomplete type compilation failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecb708fadaf60147cff597d36e0e4753c7ebdf40;p=mesa.git gallium/winsys/kms: fix incomplete type compilation failure 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 --- 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"