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

index 9564d9424b17113e5fc45adc25b5dca4bdd1ec51..6401f55bbd3dff9539e84b62f159e19c2841c7dd 100644 (file)
@@ -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"