lima: enable lower_bitops in ppir
authorErico Nunes <nunes.erico@gmail.com>
Thu, 18 Jul 2019 19:13:19 +0000 (21:13 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Wed, 31 Jul 2019 21:06:26 +0000 (23:06 +0200)
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 <nunes.erico@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/lima/lima_program.c

index efd870251fb06c3db8ea67ed6a9558cdbad74251..51cd180cf471602b993a06f4ad2ca70108848c40 100644 (file)
@@ -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 = {