vk/compiler: create an empty parameters list
authorConnor Abbott <connor.w.abbott@intel.com>
Thu, 9 Jul 2015 18:29:23 +0000 (14:29 -0400)
committerConnor Abbott <connor.w.abbott@intel.com>
Thu, 9 Jul 2015 18:29:23 +0000 (14:29 -0400)
Prevents problems when initializing the sanity_param_count.

src/vulkan/compiler.cpp

index 216da89c69711a1d6c5cf3a6bbb6a96c97bda366..cf34e7b4414cddfbcde542f245fe03830846936d 100644 (file)
@@ -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;