aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3/ir3_shader.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2016-07-30 08:20:58 +0200
committerRob Clark <[email protected]>2016-07-30 09:24:59 -0400
commit3fa68fdc90656048a8e51103f59502a3c6ab1a29 (patch)
tree41ef2dbe1631338cd826b898d7994b2c6ad1b49a /src/gallium/drivers/freedreno/ir3/ir3_shader.c
parenta63bac9271cf4984b4b8c0158e99fffa7f78c8bb (diff)
freedreno/ir3: init ir3_shader_key with memset()
To silence missing initializers warning Signed-off-by: Francesco Ansanelli <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_shader.c')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_shader.c b/src/gallium/drivers/freedreno/ir3/ir3_shader.c
index 501382fb71e..87bdcf91a67 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_shader.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_shader.c
@@ -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;