freedreno/ir3: Lower the hadd operations

There do not seem to be instructions for the ihadd/uhadd NIR operations.
Lower them to simpler ops.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30835>
This commit is contained in:
Dmitry Baryshkov 2023-10-22 01:59:12 +00:00 committed by Marge Bot
parent 8707c15b5b
commit e20f02f64a

View file

@ -108,6 +108,9 @@ static const nir_shader_compiler_options ir3_base_options = {
.lower_cs_local_index_to_id = true,
.lower_wpos_pntc = true,
.lower_hadd = true,
.lower_hadd64 = true,
.lower_int64_options = (nir_lower_int64_options)~0,
.lower_doubles_options = (nir_lower_doubles_options)~0,