radv: use last nir shader to determine stage in postprocessing
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 2 Jul 2019 10:16:36 +0000 (12:16 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 4 Jul 2019 10:52:26 +0000 (10:52 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c

index 1346299b75237f68e1ff46c524ae876fbe9a07fe..1f86d3af6c8e4ade8a1c5149231fa274a82a9fcc 100644 (file)
@@ -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);