freedreno/ir3: init ir3_shader_key with memset()

To silence missing initializers warning

Signed-off-by: Francesco Ansanelli <francians@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
francians@gmail.com 2016-07-30 08:20:58 +02:00 committed by Rob Clark
parent a63bac9271
commit 3fa68fdc90
1 changed files with 2 additions and 1 deletions

View 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;