[Mesa-dev] [PATCH 2/2] gallium/winsys/kms: fix incomplete type compilation failure
Brian Paul
brianp at vmware.com
Fri Mar 8 22:53:33 UTC 2019
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,
^
---
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 9564d94..6401f55 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"
--
1.8.5.6
More information about the mesa-dev
mailing list