amd: d16 uses rtz conversion for 32bit float

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21404>
This commit is contained in:
Georg Lehmann
2023-02-18 13:40:22 +01:00
committed by Marge Bot
parent 77252687fa
commit 9f155c21c3
2 changed files with 2 additions and 2 deletions

View File

@@ -3295,7 +3295,7 @@ radv_postprocess_nir(struct radv_pipeline *pipeline,
},
};
struct nir_fold_16bit_tex_image_options fold_16bit_options = {
.rounding_mode = nir_rounding_mode_rtne,
.rounding_mode = nir_rounding_mode_rtz,
.fold_tex_dest_types = nir_type_float,
.fold_image_dest_types = nir_type_float,
.fold_image_store_data = true,

View File

@@ -196,7 +196,7 @@ static void si_late_optimize_16bit_samplers(struct si_screen *sscreen, nir_shade
},
};
struct nir_fold_16bit_tex_image_options fold_16bit_options = {
.rounding_mode = nir_rounding_mode_rtne,
.rounding_mode = nir_rounding_mode_rtz,
.fold_tex_dest_types = nir_type_float,
.fold_image_dest_types = nir_type_float,
.fold_image_store_data = true,