On 08/19/2016 11:34 AM, Jason Ekstrand wrote:
On Fri, Aug 19, 2016 at 12:51 AM, Iago Toral <[email protected]
<mailto:[email protected]>> wrote:
Reviewed-by: Iago Toral Quiroga <[email protected]
<mailto:[email protected]>>
On Fri, 2016-08-19 at 10:39 +0300, Tapani Pälli wrote:
> (warning: ‘surftype’ may be used uninitialized ...)
>
> Signed-off-by: Tapani Pälli <[email protected]
<mailto:[email protected]>>
> ---
> src/mesa/drivers/dri/i965/gen6_blorp.c | 2 ++
> src/mesa/drivers/dri/i965/gen7_blorp.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.c
> b/src/mesa/drivers/dri/i965/gen6_blorp.c
> index abdcf17..6476fa6 100644
> --- a/src/mesa/drivers/dri/i965/gen6_blorp.c
> +++ b/src/mesa/drivers/dri/i965/gen6_blorp.c
> @@ -711,6 +711,8 @@ gen6_blorp_emit_depth_stencil_config(struct
> brw_context *brw,
> case ISL_SURF_DIM_3D:
> surftype = BRW_SURFACE_3D;
> break;
> + default:
> + unreachable("not reached");
> }
>
> /* 3DSTATE_DEPTH_BUFFER */
> diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.c
> b/src/mesa/drivers/dri/i965/gen7_blorp.c
> index d35d6c6..96e2b07 100644
> --- a/src/mesa/drivers/dri/i965/gen7_blorp.c
> +++ b/src/mesa/drivers/dri/i965/gen7_blorp.c
> @@ -497,6 +497,8 @@ gen7_blorp_emit_depth_stencil_config(struct
> brw_context *brw,
> case ISL_SURF_DIM_3D:
> surftype = BRW_SURFACE_3D;
> break;
> + default:
> + unreachable("not reached");
> }
Thanks for fixing this but I'm about to push a series that deletes all
of this code and, with it, go the warnings. :)
ah noticed! one new warning though:
genX_blorp_exec.c:132:1: warning: "/*" within comment [-Wcomment]
/* 3DSTATE_URB_VS
> /* 3DSTATE_DEPTH_BUFFER */
_______________________________________________
mesa-dev mailing list
[email protected] <mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/mesa-dev
<https://lists.freedesktop.org/mailman/listinfo/mesa-dev>
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev