Re: [Mesa-dev] [PATCH 1/2] drisw: fix incomplete type compilation failure

2019-03-09 Thread Mathias Fröhlich
Hi Brian,

Both of these fixes:

Reviewed-by: Mathias Fröhlich 

best

Mathias

On Friday, 8 March 2019 23:53:32 CET Brian Paul wrote:
> 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;
>^
> ---
>  src/gallium/winsys/sw/dri/dri_sw_winsys.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c 
> b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
> index c0200f9..3273813 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"
> 




___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/2] drisw: fix incomplete type compilation failure

2019-03-08 Thread Brian Paul
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;
   ^
---
 src/gallium/winsys/sw/dri/dri_sw_winsys.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/winsys/sw/dri/dri_sw_winsys.c 
b/src/gallium/winsys/sw/dri/dri_sw_winsys.c
index c0200f9..3273813 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"
-- 
1.8.5.6

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev