drisw: fix incomplete type compilation failure
authorBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 22:49:49 +0000 (15:49 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Mar 2019 02:08:16 +0000 (20:08 -0600)
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 <Mathias.Froehlich@web.de>
src/gallium/winsys/sw/dri/dri_sw_winsys.c

index c0200f939b6bc2b99c8e0c89e476a43a1c2c1a39..3273813bf50e4e82cbaf158a4857bdac721484ac 100644 (file)
@@ -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"