[Mesa-dev] [PATCH 4/4] mesa/st: Add missing braces in initializer

Francesco Ansanelli francians at gmail.com
Wed Jul 20 07:49:35 UTC 2016


---
 src/mesa/state_tracker/st_glsl_to_nir.cpp |    2 +-
 src/mesa/state_tracker/st_program.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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,
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 57b0935..4960853 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -954,7 +954,7 @@ st_create_fp_variant(struct st_context *st,
 
       /* glDrawPixels (color only) */
       if (key->drawpixels) {
-         nir_lower_drawpixels_options options = {0};
+         nir_lower_drawpixels_options options = {{0}};
          unsigned samplers_used = stfp->Base.Base.SamplersUsed;
 
          /* Find the first unused slot. */
-- 
1.7.9.5



More information about the mesa-dev mailing list