radv: move dumping NIR shaders to the previous similar loop

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18138>
This commit is contained in:
Samuel Pitoiset
2022-08-18 09:32:55 +02:00
committed by Marge Bot
parent 619da8df77
commit f66d822d87

View File

@@ -4683,13 +4683,9 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
*last_vgt_api_stage, &stages[i]);
stages[i].feedback.duration += os_time_get_nano() - stage_start;
}
for (int i = 0; i < MESA_VULKAN_SHADER_STAGES; ++i) {
if (stages[i].nir) {
if (radv_can_dump_shader(device, stages[i].nir, false))
if (radv_can_dump_shader(device, stages[i].nir, false))
nir_print_shader(stages[i].nir, stderr);
}
}
/* Compile NIR shaders to AMD assembly. */