From: Bas Nieuwenhuizen Date: Tue, 2 Jul 2019 10:16:36 +0000 (+0200) Subject: radv: use last nir shader to determine stage in postprocessing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15046ef7c838a8d93ac2257d36ab4bf887b8a152;p=mesa.git radv: use last nir shader to determine stage in postprocessing Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 1346299b752..1f86d3af6c8 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -4002,7 +4002,7 @@ radv_compile_nir_shader(struct ac_llvm_compiler *ac_llvm, options); ac_compile_llvm_module(ac_llvm, llvm_module, binary, config, shader_info, - nir[0]->info.stage, options); + nir[nir_count - 1]->info.stage, options); for (int i = 0; i < nir_count; ++i) ac_fill_shader_info(shader_info, nir[i], options);