From f889180ee101c2fecd573dd364d91883ccdd30df Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Fri, 31 May 2019 13:54:12 -0400 Subject: nir: add lower_bitshift option Add a "lower_bitshift" option, which disables optimizations introducing bitshifts and lowers ishl by constant to a multiply, so that we don't have to deal with bitshifts in int_to_float lowering. Signed-off-by: Jonathan Marek Reviewed-by: Jason Ekstrand --- src/gallium/drivers/freedreno/a2xx/ir2_nir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/freedreno/a2xx/ir2_nir.c') diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c index 219ba75e59d..b9f372a3fd0 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c @@ -39,6 +39,7 @@ static const nir_shader_compiler_options options = { /* .fdot_replicates = true, it is replicated, but it makes things worse */ .lower_all_io_to_temps = true, .vertex_id_zero_based = true, /* its not implemented anyway */ + .lower_bitshift = true, }; const nir_shader_compiler_options * -- cgit v1.2.3