From f01f5e71686170de64f668f23777d635d00f16c7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 19 Jul 2021 13:41:32 -0400 Subject: [PATCH] pan/bi: Zero initialize shader_info Fixes the following assert with the standalone compiler bifrost_compiler: ../src/panfrost/bifrost/bi_opt_push_ubo.c:134: bi_opt_push_ubo: Assertion `ctx->info->push.count == 0' failed. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/cmdline.c b/src/panfrost/bifrost/cmdline.c index 527ec57..ec7b488 100644 --- a/src/panfrost/bifrost/cmdline.c +++ b/src/panfrost/bifrost/cmdline.c @@ -107,7 +107,7 @@ compile_shader(int stages, char **files) struct panfrost_compile_inputs inputs = { .gpu_id = 0x7212, /* Mali G52 */ }; - struct pan_shader_info info; + struct pan_shader_info info = { 0 }; util_dynarray_clear(&binary); bifrost_compile_shader_nir(nir[i], &inputs, &binary, &info); -- 2.7.4