Module: Mesa Branch: main Commit: 0e1e6c244b561a2345bb2ee98863674cafd14344 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e1e6c244b561a2345bb2ee98863674cafd14344
Author: Rhys Perry <[email protected]> Date: Thu Nov 9 19:27:31 2023 +0000 radeonsi: use nir_lower_fp16_casts Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Georg Lehmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25566> --- src/gallium/drivers/radeonsi/si_shader_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 142a1b408b9..f683c7bbfac 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -356,6 +356,8 @@ static void si_lower_nir(struct si_screen *sscreen, struct nir_shader *nir) si_late_optimize_16bit_samplers(sscreen, nir); NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp, NULL); + + NIR_PASS_V(nir, nir_lower_fp16_casts, nir_lower_fp16_split_fp64); } static bool si_mark_divergent_texture_non_uniform(struct nir_shader *nir)
