freedreno/ir3: init ir3_shader_key with memset()
authorfrancians@gmail.com <francians@gmail.com>
Sat, 30 Jul 2016 06:20:58 +0000 (08:20 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 30 Jul 2016 13:24:59 +0000 (09:24 -0400)
To silence missing initializers warning

Signed-off-by: Francesco Ansanelli <francians@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_shader.c

index 501382fb71e21780c3ae4a48ad58d64017f3e2a0..87bdcf91a674e6094175caa78ee5de58eadbfacf 100644 (file)
@@ -309,7 +309,8 @@ ir3_shader_create(struct ir3_compiler *compiler,
                 * (as otherwise nothing will trigger the shader to be
                 * actually compiled)
                 */
-               static struct ir3_shader_key key = {{0}};
+               static struct ir3_shader_key key;
+               memset(&key, 0, sizeof(key));
                ir3_shader_variant(shader, key, debug);
        }
        return shader;