Mesa (main): tu: Zero-initialize compute driver key

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 18 13:40:14 UTC 2022


Module: Mesa
Branch: main
Commit: e348f2fb38f0c5116fac46ed0308a324235f5f0a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e348f2fb38f0c5116fac46ed0308a324235f5f0a

Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Tue May 17 16:06:38 2022 +0200

tu: Zero-initialize compute driver key

Fixes: 05329d7 ("tu: Implement pipeline caching with shared Vulkan cache")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16562>

---

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



More information about the mesa-commit mailing list