From 82bf5a8aac3425701cbf7e15063967d53f8b452f Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Thu, 18 Jul 2019 21:13:19 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/lima/lima_program.c | 1 + 1 file changed, 1 insertion(+) 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 = { -- 2.30.2