[Mesa-dev] [PATCH 3/3] st/mesa: add extra braces on nir_lower_wpos_ytransform_options initializer

Marek Olšák maraeo at gmail.com
Thu Aug 18 09:44:18 UTC 2016


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, Aug 17, 2016 at 4:39 PM, Brian Paul <brianp at vmware.com> wrote:

> Since the type is an array inside a union.  Silences MinGW warning.
> ---
>  src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp
> b/src/mesa/state_tracker/st_glsl_to_nir.cpp
> index 73a692a..6470fae 100644
> --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
> @@ -234,7 +234,7 @@ st_glsl_to_nir(struct st_context *st, struct
> gl_program *prog,
>        static const gl_state_index wposTransformState[STATE_LENGTH] = {
>           STATE_INTERNAL, STATE_FB_WPOS_Y_TRANSFORM
>        };
> -      nir_lower_wpos_ytransform_options wpos_options = {0};
> +      nir_lower_wpos_ytransform_options wpos_options = {{0}};
>        struct pipe_screen *pscreen = st->pipe->screen;
>
>        memcpy(wpos_options.state_tokens, wposTransformState,
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160818/3573f7ab/attachment.html>


More information about the mesa-dev mailing list