From e348f2fb38f0c5116fac46ed0308a324235f5f0a Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 17 May 2022 16:06:38 +0200 Subject: [PATCH] tu: Zero-initialize compute driver key Fixes: 05329d7 ("tu: Implement pipeline caching with shared Vulkan cache") Part-of: --- src/freedreno/vulkan/tu_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 17bd86fd0ac..294a9b2073c 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -3828,7 +3828,7 @@ tu_compute_pipeline_create(VkDevice device, pipeline->executables_mem_ctx = ralloc_context(NULL); util_dynarray_init(&pipeline->executables, pipeline->executables_mem_ctx); - struct tu_shader_key key; + struct tu_shader_key key = { }; tu_shader_key_init(&key, stage_info, dev); void *pipeline_mem_ctx = ralloc_context(NULL);