From: Connor Abbott Date: Thu, 9 Jul 2015 18:29:23 +0000 (-0400) Subject: vk/compiler: create an empty parameters list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cff06bbe7d78a48e3b9aa2ae36edd3408d24ca2c;p=mesa.git vk/compiler: create an empty parameters list Prevents problems when initializing the sanity_param_count. --- diff --git a/src/vulkan/compiler.cpp b/src/vulkan/compiler.cpp index 216da89c697..cf34e7b4414 100644 --- a/src/vulkan/compiler.cpp +++ b/src/vulkan/compiler.cpp @@ -996,6 +996,9 @@ anv_compile_shader_spirv(struct anv_compiler *compiler, break; } + mesa_shader->Program->Parameters = + rzalloc(mesa_shader, struct gl_program_parameter_list); + mesa_shader->Type = stage_info[stage].token; mesa_shader->Stage = stage_info[stage].stage;