diff options
author | Samuel Pitoiset <[email protected]> | 2018-05-14 16:04:33 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-05-14 21:38:17 +0200 |
commit | 7cbc6f2621f6d91b7bb201b9539ebff0f903828a (patch) | |
tree | 8f6f9614b79b6447dc5f298f0ae24439fb491efb /src/amd/vulkan/radv_shader_info.c | |
parent | 18f8200a994440faa9fb9e80e99e8140ea912993 (diff) |
radv: check that layout isn't NULL in radv_nir_shader_info_pass()
An upcoming patch will run the shader info pass on the
geometry shader just before emitting the GS copy shader.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader_info.c')
-rw-r--r-- | src/amd/vulkan/radv_shader_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index aa06efc9dc7..a436bd75343 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -424,7 +424,7 @@ radv_nir_shader_info_pass(const struct nir_shader *nir, struct nir_function *func = (struct nir_function *)exec_list_get_head_const(&nir->functions); - if (options->layout->dynamic_offset_count) + if (options->layout && options->layout->dynamic_offset_count) info->loads_push_constants = true; nir_foreach_variable(variable, &nir->inputs) |