Mesa (main): radeonsi: Use nir_fold_16bit_image_load_store_conversions.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun May 8 00:18:41 UTC 2022
Module: Mesa
Branch: main
Commit: 56070d33225b885ee0d86fe13c33ba24cde3d427
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56070d33225b885ee0d86fe13c33ba24cde3d427
Author: Georg Lehmann <dadschoorse at gmail.com>
Date: Wed May 4 12:42:00 2022 +0200
radeonsi: Use nir_fold_16bit_image_load_store_conversions.
Remove conversions using d16 image_load/image_store.
Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16319>
---
src/gallium/drivers/radeonsi/si_shader_nir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c
index 71495b28763..10815770d9b 100644
--- a/src/gallium/drivers/radeonsi/si_shader_nir.c
+++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
@@ -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);
More information about the mesa-commit
mailing list