From: Jason Ekstrand Date: Mon, 25 May 2015 23:59:24 +0000 (-0700) Subject: vk/compiler: Zero out the vs_prog_data struct when VS is disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b211feb6c4dad7149cc4fabddf9b4cf15289e83;p=mesa.git vk/compiler: Zero out the vs_prog_data struct when VS is disabled Prevents uninitialized value errors --- 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; }