From: Brian Paul Date: Fri, 8 Mar 2019 22:49:49 +0000 (-0700) Subject: drisw: fix incomplete type compilation failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04544d852c457ac333e2d43adb7d42d8c9b80d4f;p=mesa.git drisw: fix incomplete type compilation failure Fixes: ../src/gallium/winsys/sw/dri/dri_sw_winsys.c: In function ‘dri_sw_displaytarget_display’: ../src/gallium/winsys/sw/dri/dri_sw_winsys.c:255:39: error: dereferencing pointer to incomplete type ‘struct pipe_box’ offset = dri_sw_dt->stride * box->y; ^ Reviewed-by: Mathias Fröhlich --- diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c b/src/gallium/winsys/sw/dri/dri_sw_winsys.c index c0200f939b6..3273813bf50 100644 --- a/src/gallium/winsys/sw/dri/dri_sw_winsys.c +++ b/src/gallium/winsys/sw/dri/dri_sw_winsys.c @@ -35,6 +35,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"