summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConnor Abbott <connor.w.abbott@intel.com>2015-07-09 14:29:23 -0400
committerConnor Abbott <connor.w.abbott@intel.com>2015-07-09 14:29:23 -0400
commitcff06bbe7d78a48e3b9aa2ae36edd3408d24ca2c (patch)
treeef33471883707e83518b788691426622e3c9bdd8 /src
parent3318a86d12cfd2d436bf5418b73d363018678d84 (diff)
vk/compiler: create an empty parameters list
Prevents problems when initializing the sanity_param_count.
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/compiler.cpp3
1 files changed, 3 insertions, 0 deletions
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;