From 1b211feb6c4dad7149cc4fabddf9b4cf15289e83 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 25 May 2015 16:59:24 -0700 Subject: [PATCH] vk/compiler: Zero out the vs_prog_data struct when VS is disabled Prevents uninitialized value errors --- src/vulkan/compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vulkan/compiler.cpp b/src/vulkan/compiler.cpp index 1907bd52cc8..2bd197e352b 100644 --- a/src/vulkan/compiler.cpp +++ b/src/vulkan/compiler.cpp @@ -937,6 +937,7 @@ anv_compiler_run(struct anv_compiler *compiler, struct anv_pipeline *pipeline) pipeline->prog_data[VK_SHADER_STAGE_VERTEX] = &pipeline->vs_prog_data.base.base; pipeline->active_stages |= VK_SHADER_STAGE_VERTEX_BIT;; } else { + memset(&pipeline->vs_prog_data, 0, sizeof(pipeline->vs_prog_data)); pipeline->vs_simd8 = NO_KERNEL; } -- 2.30.2