Module: Mesa Branch: master Commit: de647190244d06d38e0e91874b0b84122da496c5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=de647190244d06d38e0e91874b0b84122da496c5
Author: Samuel Pitoiset <[email protected]> Date: Fri Jan 24 16:59:32 2020 +0100 radv: print NIR shaders after lowering FS inputs/outputs This is confusing otherwise. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 62244902a47..9310ec4989e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
