[Mesa-dev] [PATCH] i965: fix compilation warnings in blorp

Tapani Pälli tapani.palli at intel.com
Fri Aug 19 10:21:59 UTC 2016



On 08/19/2016 11:34 AM, Jason Ekstrand wrote:
>
>
> On Fri, Aug 19, 2016 at 12:51 AM, Iago Toral <itoral at igalia.com
> <mailto:itoral at igalia.com>> wrote:
>
>     Reviewed-by: Iago Toral Quiroga <itoral at igalia.com
>     <mailto:itoral at igalia.com>>
>
>     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 <tapani.palli at intel.com
>     <mailto:tapani.palli at intel.com>>
>     > ---
>     >  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
>     mesa-dev at lists.freedesktop.org <mailto:mesa-dev at lists.freedesktop.org>
>     https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>     <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>
>
>


More information about the mesa-dev mailing list