[Mesa-dev] [PATCH] freedreno/ir3: init ir3_shader_key with memset()
Francesco Ansanelli
francians at gmail.com
Sat Jul 30 06:20:58 UTC 2016
To silence missing initializers warning
Signed-off-by: Francesco Ansanelli <francians at gmail.com>
---
src/gallium/drivers/freedreno/ir3/ir3_shader.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_shader.c b/src/gallium/drivers/freedreno/ir3/ir3_shader.c
index 5d57c0b..5c73696 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;
--
1.7.9.5
More information about the mesa-dev
mailing list