From b3676a65488e4d47596000c260f7872cfed78688 Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Thu, 18 Jul 2019 20:56:27 +0200 Subject: nir/algebraic: rename lower_bitshift to lower_bitops Optimizations that insert bitshift or bitwise operations should not be applied on GPUs that don't support integer operations. The .lower_bitshift could be used to control the bitshift related ones, but there was also one bitwise optimization uncovered. Since only lima and freedreno use this option and the use case is that no bit operations are wanted, let's rename it to .lower_bitops and use it to control all bitops related optimizations. Signed-off-by: Erico Nunes Reviewed-by: Jonathan Marek --- src/gallium/drivers/lima/lima_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/lima/lima_program.c') diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c index 610782306e9..efd870251fb 100644 --- a/src/gallium/drivers/lima/lima_program.c +++ b/src/gallium/drivers/lima/lima_program.c @@ -51,7 +51,7 @@ static const nir_shader_compiler_options vs_nir_options = { .lower_ftrunc = true, /* could be implemented by clamp */ .lower_fsat = true, - .lower_bitshift = true, + .lower_bitops = true, .lower_rotate = true, .lower_sincos = true, }; -- cgit v1.2.3