From: Erico Nunes Date: Thu, 18 Jul 2019 19:13:19 +0000 (+0200) Subject: lima: enable lower_bitops in ppir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82bf5a8aac3425701cbf7e15063967d53f8b452f;p=mesa.git lima: enable lower_bitops in ppir The mali pp doesn't support integers and some nir_algebraic optimizations may result in ops that are not easily lowerable to floats, so disable optimizations resulting in bitops. Signed-off-by: Erico Nunes Reviewed-by: Jonathan Marek --- diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c index efd870251fb..51cd180cf47 100644 --- a/src/gallium/drivers/lima/lima_program.c +++ b/src/gallium/drivers/lima/lima_program.c @@ -67,6 +67,7 @@ static const nir_shader_compiler_options fs_nir_options = { .lower_fsign = true, .lower_rotate = true, .lower_fdot = true, + .lower_bitops = true, }; static const struct nir_lower_tex_options tex_options = {