radeonsi: Use nir_fold_16bit_image_load_store_conversions.

Remove conversions using d16 image_load/image_store.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16319>
This commit is contained in:
Georg Lehmann 2022-05-04 12:42:00 +02:00 committed by Marge Bot
parent ad864a7c15
commit 56070d3322

View file

@ -182,6 +182,7 @@ static void si_late_optimize_16bit_samplers(struct si_screen *sscreen, nir_shade
(has_g16 ? 1 << nir_tex_src_ddx : 0),
sampler_dims);
NIR_PASS(changed, nir, nir_legalize_16bit_sampler_srcs, tex_constraints);
NIR_PASS(changed, nir, nir_fold_16bit_image_load_store_conversions);
if (changed) {
si_nir_opts(sscreen, nir, false);