radv: print NIR shaders after lowering FS inputs/outputs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 24 Jan 2020 15:59:32 +0000 (16:59 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 19:54:58 +0000 (19:54 +0000)
This is confusing otherwise.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3553>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3553>

src/amd/vulkan/radv_pipeline.c

index 6224490..9310ec4 100644 (file)
@@ -2830,14 +2830,16 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
                        if (!aco)
                                NIR_PASS_V(nir[i], nir_lower_bool_to_int32);
                }
-
-               if (radv_can_dump_shader(device, modules[i], false))
-                       nir_print_shader(nir[i], stderr);
        }
 
        if (nir[MESA_SHADER_FRAGMENT])
                radv_lower_fs_io(nir[MESA_SHADER_FRAGMENT]);
 
+       for (int i = 0; i < MESA_SHADER_STAGES; ++i) {
+               if (radv_can_dump_shader(device, modules[i], false))
+                       nir_print_shader(nir[i], stderr);
+       }
+
        radv_fill_shader_keys(device, keys, key, nir);
 
        radv_fill_shader_info(pipeline, pStages, keys, infos, nir);